Merge pull request 'Bugfix bei Spieleranzeige und Vereinfachung der Keine-Player-Logik' (#66) from bug/60-CreateGroupView-erstellter-Spieler-erscheint-nicht-in-alle-Spieler into development
Reviewed-on: #66 Reviewed-by: Felix Kirchner <felix.kirchner.fk@gmail.com>
This commit was merged in pull request #66.
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user