improve ui

This commit is contained in:
nyne
2024-10-27 16:39:38 +08:00
parent 910bda8cc1
commit 27d25db407
7 changed files with 58 additions and 7 deletions

View File

@@ -62,8 +62,22 @@ class _ExplorePageState extends State<ExplorePage>
Widget buildBody(String i) => _SingleExplorePage(i, key: Key(i));
Widget buildEmpty() {
return NetworkError(
message: "No Explore Pages".tl,
retry: () {
setState(() {});
},
withAppbar: false,
);
}
@override
Widget build(BuildContext context) {
if (pages.isEmpty) {
return buildEmpty();
}
Widget tabBar = Material(
child: FilledTabBar(
tabs: pages.map((e) => buildTab(e)).toList(),