statuses and switches colors changed.

main_production_RSG
Sikander Saleem 1 month ago
parent 9cdeeae1c1
commit c7494b2354

@ -172,8 +172,8 @@ class _ServiceRequestDetailViewState extends State<ServiceRequestDetailView> {
StatusLabel(
radius: 4,
label: '${workOrder.since} days',
textColor: AppColor.neutral50,
backgroundColor: AppColor.orange30,
textColor: AppColor.yellowStatusTextColor,
backgroundColor: AppColor.yellowStatusColor,
),
],
],

@ -36,6 +36,7 @@ class AppColor {
static const Color neutral160 = Color(0xffE5E5E5);
static const Color neutral170 = Color(0xff6E6E6E);
static const Color disableDark = Color(0xff444756);
static const Color switchBgColor = Color(0xff5A5E79);
//background
static const Color backgroundLight = Color(0xfff5f6fc);

@ -110,9 +110,9 @@ class _SettingsPageState extends State<SettingsPage> {
AdvancedSwitch(
controller: langController,
initialValue: langController!.value,
activeColor: AppColor.green50.withOpacity(0.5),
activeColor: AppColor.green50.withValues(alpha: .25),
inactiveColor: AppColor.neutral10,
thumb: CircleAvatar(backgroundColor: langController!.value ? AppColor.green50 : AppColor.neutral20),
thumb: CircleAvatar(backgroundColor: langController!.value ? AppColor.green50 : AppColor.switchBgColor),
borderRadius: const BorderRadius.all(Radius.circular(30)),
width: 42.toScreenWidth,
height: 24.toScreenHeight,
@ -133,9 +133,9 @@ class _SettingsPageState extends State<SettingsPage> {
AdvancedSwitch(
controller: themeController,
initialValue: themeController!.value,
activeColor: AppColor.green50.withOpacity(0.5),
activeColor: AppColor.green50.withValues(alpha: .25),
inactiveColor: AppColor.neutral10,
thumb: CircleAvatar(backgroundColor: themeController!.value ? AppColor.green50 : AppColor.neutral20),
thumb: CircleAvatar(backgroundColor: themeController!.value ? AppColor.green50 : AppColor.switchBgColor),
borderRadius: const BorderRadius.all(Radius.circular(30)),
width: 42.toScreenWidth,
height: 24.toScreenHeight,
@ -179,14 +179,14 @@ class _SettingsPageState extends State<SettingsPage> {
height: 24.toScreenHeight,
alignment: enable ? Alignment.centerRight : Alignment.centerLeft,
decoration: BoxDecoration(
color: enable ? AppColor.green50.withOpacity(0.5) : AppColor.neutral10,
color: enable ? AppColor.green50.withValues(alpha: 0.25) : AppColor.neutral10,
borderRadius: const BorderRadius.all(Radius.circular(30)),
),
padding: const EdgeInsets.all(2),
child: Container(
height: 20.toScreenHeight,
width: 20.toScreenWidth,
decoration: BoxDecoration(shape: BoxShape.circle, color: enable ? AppColor.green50 : AppColor.neutral20),
decoration: BoxDecoration(shape: BoxShape.circle, color: enable ? AppColor.green50 : AppColor.switchBgColor),
));
}
}

Loading…
Cancel
Save