fix : ui fix after release 1.3.3
This commit is contained in:
@@ -49,10 +49,11 @@ class RootLogic extends GetxController {
|
||||
super.onInit();
|
||||
localDatasource = diChicken.get<ChickenLocalDataSourceImp>();
|
||||
chickenRepository = diChicken.get<ChickenRepositoryImp>();
|
||||
localDatasource.openBox().then((value) async {
|
||||
widelyUsedList.value = localDatasource.getAllWidely();
|
||||
});
|
||||
|
||||
widelyUsedList.value = localDatasource.getAllWidely();
|
||||
|
||||
//getKillHouseDistributionInfo();
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -70,9 +71,7 @@ class RootLogic extends GetxController {
|
||||
}
|
||||
|
||||
if (widelyUsedList.value?.hasInit != true) {
|
||||
localDatasource.initWidleyUsed().then(
|
||||
(value) => localDatasource.getAllWidely(),
|
||||
);
|
||||
localDatasource.initWidleyUsed().then((value) => localDatasource.getAllWidely());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -86,13 +86,20 @@ class RootPage extends GetView<RootLogic> {
|
||||
label: 'خرید',
|
||||
icon: Assets.vec.buySvg.path,
|
||||
isSelected: controller.currentPage.value == 0,
|
||||
onTap: () => controller.changePage(0),
|
||||
onTap: () {
|
||||
Get.nestedKey(1)?.currentState?.popUntil((route) => route.isFirst);
|
||||
|
||||
controller.changePage(0);
|
||||
},
|
||||
),
|
||||
RBottomNavigationItem(
|
||||
label: 'فروش',
|
||||
icon: Assets.vec.saleSvg.path,
|
||||
isSelected: controller.currentPage.value == 1,
|
||||
onTap: () => controller.changePage(1),
|
||||
onTap: () {
|
||||
Get.nestedKey(0)?.currentState?.popUntil((route) => route.isFirst);
|
||||
controller.changePage(1);
|
||||
},
|
||||
),
|
||||
RBottomNavigationItem(
|
||||
label: 'خانه',
|
||||
|
||||
Reference in New Issue
Block a user