feat : change role navigation

This commit is contained in:
2025-09-13 16:18:30 +03:30
parent 29059cb7b1
commit 7f29023e94
7 changed files with 110 additions and 56 deletions

View File

@@ -55,6 +55,12 @@ class GService extends GetxService {
}
}
String? getSelectedRole(Module module) {
TargetPage? targetPage = getTargetPage(module);
return targetPage?.route;
}
Future<void> setIsNotFirstTime() async {
AppModel model = AppModel(isFirstRun: false);

View File

@@ -30,18 +30,16 @@ class CustomChip extends StatelessWidget {
decoration: BoxDecoration(
color: isSelected ? selectedColor : unSelectedColor,
borderRadius: BorderRadius.circular(8),
border:
isSelected
? Border.fromBorderSide(BorderSide.none)
: Border.all(width: 0.25, color: const Color(0xFFB0B0B0)),
border: isSelected
? Border.fromBorderSide(BorderSide.none)
: Border.all(width: 1, color: AppColor.blueNormal),
),
child: Text(
title,
textAlign: TextAlign.center,
style:
isSelected
? AppFonts.yekan10.copyWith(color: AppColor.whiteLight)
: AppFonts.yekan10,
style: isSelected
? AppFonts.yekan14Bold.copyWith(color: AppColor.whiteLight)
: AppFonts.yekan14Bold.copyWith(color: AppColor.blueNormal),
),
),
);
@@ -103,7 +101,7 @@ class RFilterChips extends StatelessWidget {
showCheckmark: false,
shape: RoundedRectangleBorder(
borderRadius: const BorderRadius.all(Radius.circular(8.0)),
side: BorderSide(width: 1, color: isSelected? selectedColor :unSelectedColor),
side: BorderSide(width: 1, color: isSelected ? selectedColor : unSelectedColor),
),
deleteIcon: Icon(CupertinoIcons.clear_circled),
onDeleted: isSelected ? () => onTap(index) : null,