Fix bug where the skeleton was edited while it was visible and
match the “no games available” container size to the size used when games are available.
This commit is contained in:
@@ -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