|
|
|
|
@ -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),
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|