common: Placeholder text for no performers

This commit is contained in:
Elias Projahn 2020-05-24 12:10:20 +02:00
parent a0310883fb
commit dfeaefd0b3

View file

@ -12,6 +12,9 @@ class PerformancesText extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
if (performanceInfos.isEmpty) {
return Text('Unknown performers');
} else {
final List<String> performanceTexts = []; final List<String> performanceTexts = [];
for (final p in performanceInfos) { for (final p in performanceInfos) {
@ -35,4 +38,4 @@ class PerformancesText extends StatelessWidget {
return Text(performanceTexts.join(', ')); return Text(performanceTexts.join(', '));
} }
} }
}