ChooseGroupView zeigt keine Group entspricht der Suche, obwohl nur Gruppen leer #98
@@ -74,11 +74,19 @@ class _ChooseGroupViewState extends State<ChooseGroupView> {
|
|||||||
Expanded(
|
Expanded(
|
||||||
child: Visibility(
|
child: Visibility(
|
||||||
visible: filteredGroups.isNotEmpty,
|
visible: filteredGroups.isNotEmpty,
|
||||||
|
replacement: Visibility(
|
||||||
|
visible: controller.text.isNotEmpty,
|
||||||
replacement: const TopCenteredMessage(
|
replacement: const TopCenteredMessage(
|
||||||
|
icon: Icons.info,
|
||||||
|
title: 'Info',
|
||||||
|
message: 'You have no groups created yet',
|
||||||
|
),
|
||||||
|
child: const TopCenteredMessage(
|
||||||
icon: Icons.info,
|
icon: Icons.info,
|
||||||
title: 'Info',
|
title: 'Info',
|
||||||
message: 'There is no group matching your search',
|
message: 'There is no group matching your search',
|
||||||
),
|
),
|
||||||
|
),
|
||||||
child: ListView.builder(
|
child: ListView.builder(
|
||||||
padding: const EdgeInsets.only(bottom: 85),
|
padding: const EdgeInsets.only(bottom: 85),
|
||||||
itemCount: filteredGroups.length,
|
itemCount: filteredGroups.length,
|
||||||
|
|||||||
Reference in New Issue
Block a user