Merge pull request 'ChooseGroupView zeigt keine Group entspricht der Suche, obwohl nur Gruppen leer' (#98) from bug/94-choosegroupview-zeigt-keine-group-entspricht-der-suche-obwohl-nur-gruppen-leer into development

Reviewed-on: #98
Reviewed-by: Mathis Kirchner <mathis.kirchner.mk@gmail.com>
This commit was merged in pull request #98.
This commit is contained in:
2025-12-29 17:47:11 +00:00

View File

@@ -74,10 +74,18 @@ class _ChooseGroupViewState extends State<ChooseGroupView> {
Expanded( Expanded(
child: Visibility( child: Visibility(
visible: filteredGroups.isNotEmpty, visible: filteredGroups.isNotEmpty,
replacement: const TopCenteredMessage( replacement: Visibility(
icon: Icons.info, visible: widget.groups.isNotEmpty,
title: 'Info', replacement: const TopCenteredMessage(
message: 'There is no group matching your search', icon: Icons.info,
title: 'Info',
message: 'You have no groups created yet',
),
child: const TopCenteredMessage(
icon: Icons.info,
title: 'Info',
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),