This commit is contained in:
Mohammad Salameh
2024-04-04 15:51:58 +03:00
parent 8c80283f9c
commit af7b497cdb

View File

@ -97,7 +97,7 @@ class HomeCubit extends Cubit<HomeState> {
} }
unselectRoom() { unselectRoom() {
selectedRoom = null; // selectedRoom = null;
devicesPageController.animateToPage( devicesPageController.animateToPage(
0, 0,
duration: duration, duration: duration,
@ -113,6 +113,7 @@ class HomeCubit extends Cubit<HomeState> {
emitSafe(RoomUnSelected()); emitSafe(RoomUnSelected());
} }
//////////////////////////////////////// API ////////////////////////////////////////
fetchSpaces() async { fetchSpaces() async {
emitSafe(GetSpacesLoading()); emitSafe(GetSpacesLoading());
try { try {
@ -142,7 +143,7 @@ class HomeCubit extends Cubit<HomeState> {
} }
} }
////////////////////////////////////////Nav//////////////////////////////////////// /////////////////////////////////////// Nav ///////////////////////////////////////
static clear() { static clear() {
pageIndex = 0; pageIndex = 0;