fix : memory leak animation

This commit is contained in:
2025-09-03 12:04:57 +03:30
parent 8e9768daf6
commit bdf5344451
3 changed files with 88 additions and 84 deletions

View File

@@ -89,7 +89,7 @@ class ModulesLogic extends GetxController {
selectedIndex.value = index;
await Future.delayed(Duration(milliseconds: 300));
selectedIndex.value = null;
// saveModule(module);
// saveModule(module);
await navigateToModule(module);
}
@@ -102,9 +102,9 @@ class ModulesLogic extends GetxController {
isLoading.value = !isLoading.value;
}
await Get.toNamed(target.key, arguments: module);
var args = await Get.toNamed(target.key, arguments: module);
if (target.value?[1] != null) {
if (target.value?[1] != null && args == -1) {
await target.value?[1]?.call();
}
}