diff --git a/lib/presentation/pages/modules/logic.dart b/lib/presentation/pages/modules/logic.dart index 362a751..5064460 100644 --- a/lib/presentation/pages/modules/logic.dart +++ b/lib/presentation/pages/modules/logic.dart @@ -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); }