Added page swipe for navigation

This commit is contained in:
Mohammad Salameh
2024-03-10 16:57:12 +03:00
parent c03b2b248d
commit f11b6d8d32
10 changed files with 84 additions and 22 deletions

View File

@ -20,7 +20,7 @@ class DefaultNavBar extends StatelessWidget {
child: BottomNavigationBar(
backgroundColor: Colors.transparent,
onTap: (int index) {
cubit.updatePageIndex(index, context);
cubit.updatePageIndex(index);
if (DevicesCubit.get(context).chosenCategoryView != null) {
DevicesCubit().clearCategoriesSelection(context);
}