fix: save route's

This commit is contained in:
2025-09-06 21:18:18 +03:30
parent d2e74e6627
commit 1bc449c9be
3 changed files with 23 additions and 30 deletions

View File

@@ -34,7 +34,10 @@ class RolePage extends GetView<RoleLogic> {
title: role.keys.first,
onTap: () async {
String route = role.values.first;
await controller.gService.saveSelectedRole(route);
await controller.gService.saveSelectedRole(
Module.chicken,
route,
);
Get.offAllNamed(route);
},
);
@@ -106,7 +109,10 @@ class RolePage extends GetView<RoleLogic> {
child: InkWell(
onTap: onTap,
child: Center(
child: Text(title, style: AppFonts.yekan12Bold.copyWith(color: AppColor.blueNormal)),
child: Text(
title,
style: AppFonts.yekan12Bold.copyWith(color: AppColor.blueNormal),
),
),
),
);