Bugfix bei Spieleranzeige und Vereinfachung der Keine-Player-Logik #66

Merged
flixcoo merged 1 commits from bug/60-CreateGroupView-erstellter-Spieler-erscheint-nicht-in-alle-Spieler into development 2025-11-23 21:41:08 +00:00
Showing only changes of commit 974d6e9b56 - Show all commits

View File

@@ -209,12 +209,13 @@ class _CreateGroupViewState extends State<CreateGroupView> {
), ),
); );
} }
if (snapshot.connectionState == bool doneLoading =
ConnectionState.done && snapshot.connectionState ==
(!snapshot.hasData || ConnectionState.done;
snapshot.data!.isEmpty || bool snapshotDataEmpty =
(selectedPlayers.isEmpty && !snapshot.hasData || snapshot.data!.isEmpty;
allPlayers.isEmpty))) { if (doneLoading &&
(snapshotDataEmpty && allPlayers.isEmpty)) {
return const Center( return const Center(
child: TopCenteredMessage( child: TopCenteredMessage(
icon: Icons.info, icon: Icons.info,