mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
improve ui
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user