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

@@ -29,6 +29,16 @@ class CategoriesPage extends StatelessWidget {
.where((element) => allCategories.contains(element))
.toList();
if(categories.isEmpty) {
return NetworkError(
message: "No Category Pages".tl,
retry: () {
controller.update();
},
withAppbar: false,
);
}
return Material(
child: DefaultTabController(
length: categories.length,