Fix bug where the skeleton was edited while it was visible and
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m4s
Pull Request Pipeline / lint (pull_request) Successful in 2m6s

match the “no games available” container size to the size used when games are available.
This commit is contained in:
2025-11-23 21:16:13 +01:00
parent 8307488f28
commit 694cac7f26

View File

@@ -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 =
(isLoading
? skeletonData
@@ -214,7 +205,7 @@ class _HomeViewState extends State<HomeView> {
);
} else {
return const Center(
heightFactor: 4,
heightFactor: 12,
child: Text('No recent games available.'),
);
}