Compare commits
6 Commits
32c7d45809
...
44279bc148
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
44279bc148 | ||
| a3fa499662 | |||
| f25737cdc5 | |||
| 0b500b5248 | |||
| 974d6e9b56 | |||
| 694cac7f26 |
@@ -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,
|
||||||
|
|||||||
@@ -151,15 +151,6 @@ class _HomeViewState extends State<HomeView> {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (snapshot.connectionState ==
|
|
||||||
ConnectionState.done &&
|
|
||||||
(!snapshot.hasData ||
|
|
||||||
snapshot.data!.isEmpty)) {
|
|
||||||
return const Center(
|
|
||||||
heightFactor: 4,
|
|
||||||
child: Text('No recent games available.'),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
final List<Game> games =
|
final List<Game> games =
|
||||||
(isLoading
|
(isLoading
|
||||||
? skeletonData
|
? skeletonData
|
||||||
@@ -214,7 +205,7 @@ class _HomeViewState extends State<HomeView> {
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return const Center(
|
return const Center(
|
||||||
heightFactor: 4,
|
heightFactor: 12,
|
||||||
child: Text('No recent games available.'),
|
child: Text('No recent games available.'),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user