feat: killHouse action page

This commit is contained in:
2025-11-26 16:23:18 +03:30
parent 91e8d73030
commit 9242cb8125
30 changed files with 386 additions and 45 deletions

View File

@@ -32,11 +32,17 @@ class RolePage extends GetView<RoleLogic> {
return roleCard(
title: role.keys.first,
onTap: () async {
String route = role.values.first;
await controller.gService.saveRoute(Module.chicken, route);
try {
String route = role.values.first;
await controller.gService.saveRoute(Module.chicken, route);
await controller.gService.saveRole(Module.chicken, data[index]);
Get.offAllNamed(route);
await controller.gService.saveRole(Module.chicken, data[index]);
Get.offAllNamed(route);
} catch (e) {
eLog(
"احتمالا در\n ``getFaUserRoleWithOnTap`` \nروت اش را تعریف نکردی 👻👻 ==>$e ",
);
}
},
);
},