mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-25 05:07:55 +00:00
Update DefaultNavBar widget and ServerFailure class
Refactor DefaultNavBar widget to update page index on item tap. Update ServerFailure class to handle 400 status code with list of errors.
This commit is contained in:
@@ -27,9 +27,11 @@ class DefaultNavBar extends StatelessWidget {
|
||||
// DevicesCubit.getInstance()
|
||||
// .clearCategoriesSelection(context);
|
||||
// }
|
||||
if (HomeCubit.getInstance().selectedRoom != null) {
|
||||
HomeCubit.getInstance().unselectRoom();
|
||||
}
|
||||
// if (HomeCubit.getInstance().selectedRoom != null) {
|
||||
// HomeCubit.getInstance().unselectRoom();
|
||||
// }
|
||||
|
||||
HomeCubit.getInstance().updatePageIndex(index);
|
||||
},
|
||||
currentIndex: HomeCubit.pageIndex,
|
||||
selectedItemColor: ColorsManager.primaryColor,
|
||||
|
||||
Reference in New Issue
Block a user