From 6e1255f26ee222ecd5febfd3e14846f2fabb060f Mon Sep 17 00:00:00 2001 From: Elias Projahn Date: Mon, 4 May 2020 19:22:31 +0200 Subject: [PATCH] mobile: Remove unused text widgets --- mobile/lib/widgets/texts.dart | 44 ----------------------------------- 1 file changed, 44 deletions(-) diff --git a/mobile/lib/widgets/texts.dart b/mobile/lib/widgets/texts.dart index 3128d57..d5b4ed5 100644 --- a/mobile/lib/widgets/texts.dart +++ b/mobile/lib/widgets/texts.dart @@ -3,50 +3,6 @@ import 'package:musicus_database/musicus_database.dart'; import '../backend.dart'; -class EnsembleText extends StatelessWidget { - final int ensembleId; - - EnsembleText(this.ensembleId); - - @override - Widget build(BuildContext context) { - final backend = Backend.of(context); - - return StreamBuilder( - stream: backend.db.ensembleById(ensembleId).watchSingle(), - builder: (context, snapshot) { - if (snapshot.hasData) { - return Text(snapshot.data.name); - } else { - return Container(); - } - }, - ); - } -} - -class PersonText extends StatelessWidget { - final int personId; - - PersonText(this.personId); - - @override - Widget build(BuildContext context) { - final backend = Backend.of(context); - - return StreamBuilder( - stream: backend.db.personById(personId).watchSingle(), - builder: (context, snapshot) { - if (snapshot.hasData) { - return Text('${snapshot.data.firstName} ${snapshot.data.lastName}'); - } else { - return Container(); - } - }, - ); - } -} - /// A widget showing information on a list of performances. class PerformancesText extends StatelessWidget { /// The information to show.