fix : just single snack bar
This commit is contained in:
@@ -65,7 +65,6 @@ class ModulesLogic extends GetxController {
|
|||||||
getSliders();
|
getSliders();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void saveModule(Module module) {
|
void saveModule(Module module) {
|
||||||
tokenService.saveModule(module);
|
tokenService.saveModule(module);
|
||||||
tokenService.appModule.value = module;
|
tokenService.appModule.value = module;
|
||||||
@@ -73,7 +72,13 @@ class ModulesLogic extends GetxController {
|
|||||||
|
|
||||||
void onTapCard(Module? module, int index) async {
|
void onTapCard(Module? module, int index) async {
|
||||||
if (module == null) {
|
if (module == null) {
|
||||||
Get.snackbar("بزودی", "این ماژول به زودی اضافه میشود", snackPosition: SnackPosition.BOTTOM);
|
if(Get.isSnackbarOpen) return;
|
||||||
|
Get.snackbar(
|
||||||
|
"در حال توسعه",
|
||||||
|
"این ماژول به زودی اضافه میشود",
|
||||||
|
snackPosition: SnackPosition.BOTTOM,
|
||||||
|
backgroundColor: AppColor.yellowDark,
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
_goToModule(module, index);
|
_goToModule(module, index);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user