mirror of
https://github.com/johrpan/musicus_mobile.git
synced 2025-10-26 18:57:25 +01:00
common: Placeholder text for no performers
This commit is contained in:
parent
a0310883fb
commit
dfeaefd0b3
1 changed files with 21 additions and 18 deletions
|
|
@ -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) {
|
||||||
|
|
@ -34,5 +37,5 @@ class PerformancesText extends StatelessWidget {
|
||||||
|
|
||||||
return Text(performanceTexts.join(', '));
|
return Text(performanceTexts.join(', '));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue