Fixed navigation issue

This commit is contained in:
Mohammad Salameh
2024-03-04 15:03:57 +03:00
parent 7ecac02a8a
commit 49b24e14eb
6 changed files with 64 additions and 18 deletions

View File

@ -21,7 +21,7 @@ class DefaultNavBar extends StatelessWidget {
onTap: (int index) {
cubit.updatePageIndex(index, context);
if (DevicesCubit.get(context).chosenCategoryView != null) {
Navigator.pop(context);
DevicesCubit().clearCategoriesSelection(context);
}
},
currentIndex: cubit.getPageIndex,