feat : change role navigation
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user