fix : just single snack bar

This commit is contained in:
2025-08-27 16:31:01 +03:30
parent b1eb767a8b
commit 047c4e49e7

View File

@@ -65,7 +65,6 @@ class ModulesLogic extends GetxController {
getSliders();
}
void saveModule(Module module) {
tokenService.saveModule(module);
tokenService.appModule.value = module;
@@ -73,7 +72,13 @@ class ModulesLogic extends GetxController {
void onTapCard(Module? module, int index) async {
if (module == null) {
Get.snackbar("بزودی", "این ماژول به زودی اضافه می‌شود", snackPosition: SnackPosition.BOTTOM);
if(Get.isSnackbarOpen) return;
Get.snackbar(
"در حال توسعه",
"این ماژول به زودی اضافه می‌شود",
snackPosition: SnackPosition.BOTTOM,
backgroundColor: AppColor.yellowDark,
);
} else {
_goToModule(module, index);
}