|
|
|
@ -236,7 +236,43 @@ class _GeneralSettings extends State<GeneralSettings>
|
|
|
|
|
break;
|
|
|
|
|
case 1:
|
|
|
|
|
{
|
|
|
|
|
themeNotifier.setTheme(await getTheme(value));
|
|
|
|
|
themeNotifier.setTheme(ThemeData(
|
|
|
|
|
fontFamily: await sharedPref.getString(APP_LANGUAGE) == 'ar' ? 'Cairo' : 'WorkSans',
|
|
|
|
|
primarySwatch: Colors.grey,
|
|
|
|
|
visualDensity: VisualDensity.adaptivePlatformDensity,
|
|
|
|
|
brightness: Brightness.light,
|
|
|
|
|
pageTransitionsTheme: const PageTransitionsTheme(
|
|
|
|
|
builders: {
|
|
|
|
|
TargetPlatform.android: ZoomPageTransitionsBuilder(),
|
|
|
|
|
TargetPlatform.iOS: CupertinoPageTransitionsBuilder(),
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
hintColor: Colors.grey[400],
|
|
|
|
|
cardColor: Colors.black,
|
|
|
|
|
buttonColor: Colors.grey[400],
|
|
|
|
|
disabledColor: Colors.grey[300],
|
|
|
|
|
errorColor: Color.fromRGBO(235, 80, 60, 1.0),
|
|
|
|
|
scaffoldBackgroundColor: Colors.grey,
|
|
|
|
|
textSelectionColor: Color.fromRGBO(80, 100, 253, 0.5),
|
|
|
|
|
textSelectionHandleColor: Colors.grey,
|
|
|
|
|
canvasColor: Colors.white,
|
|
|
|
|
backgroundColor: Colors.grey,
|
|
|
|
|
highlightColor: Colors.grey[100].withOpacity(0.4),
|
|
|
|
|
splashColor: Colors.transparent,
|
|
|
|
|
primaryColor: Colors.grey,
|
|
|
|
|
bottomSheetTheme: BottomSheetThemeData(backgroundColor: Color(0xffE0E0E0)),
|
|
|
|
|
cursorColor: Colors.grey,
|
|
|
|
|
|
|
|
|
|
iconTheme: IconThemeData(),
|
|
|
|
|
appBarTheme: AppBarTheme(
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
brightness: Brightness.dark,
|
|
|
|
|
elevation: 10.0,
|
|
|
|
|
actionsIconTheme: IconThemeData(
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
));
|
|
|
|
|
Screen.setBrightness(1.0);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
@ -257,7 +293,7 @@ class _GeneralSettings extends State<GeneralSettings>
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
permission.setTheme(value);
|
|
|
|
|
//permission.setTheme(value);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
setVibration(value){
|
|
|
|
|