|
|
|
|
@ -108,9 +108,10 @@ class _SettingsPageState extends State<SettingsPage> {
|
|
|
|
|
context.translation.arabic.heading5(context).custom(color: AppColor.textStyleColor(context)),
|
|
|
|
|
AdvancedSwitch(
|
|
|
|
|
controller: langController,
|
|
|
|
|
initialValue: langController!.value,
|
|
|
|
|
activeColor: AppColor.green50.withOpacity(0.5),
|
|
|
|
|
inactiveColor: AppColor.neutral10,
|
|
|
|
|
thumb: CircleAvatar(backgroundColor: _settingProvider!.language == "ar" ? AppColor.green50 : AppColor.neutral20),
|
|
|
|
|
thumb: CircleAvatar(backgroundColor: langController!.value ? AppColor.green50 : AppColor.neutral20),
|
|
|
|
|
borderRadius: const BorderRadius.all(Radius.circular(30)),
|
|
|
|
|
width: 42.toScreenWidth,
|
|
|
|
|
height: 24.toScreenHeight,
|
|
|
|
|
@ -130,9 +131,10 @@ class _SettingsPageState extends State<SettingsPage> {
|
|
|
|
|
context.translation.lightTheme.heading5(context).custom(color: AppColor.textStyleColor(context)),
|
|
|
|
|
AdvancedSwitch(
|
|
|
|
|
controller: themeController,
|
|
|
|
|
initialValue: themeController!.value,
|
|
|
|
|
activeColor: AppColor.green50.withOpacity(0.5),
|
|
|
|
|
inactiveColor: AppColor.neutral10,
|
|
|
|
|
thumb: CircleAvatar(backgroundColor: _settingProvider!.theme == "light" ? AppColor.green50 : AppColor.neutral20),
|
|
|
|
|
thumb: CircleAvatar(backgroundColor: themeController!.value ? AppColor.green50 : AppColor.neutral20),
|
|
|
|
|
borderRadius: const BorderRadius.all(Radius.circular(30)),
|
|
|
|
|
width: 42.toScreenWidth,
|
|
|
|
|
height: 24.toScreenHeight,
|
|
|
|
|
|