|
|
|
@ -12,9 +12,11 @@ import 'package:provider/provider.dart';
|
|
|
|
|
final bluePrimary = Color(0xFF3F51B5);
|
|
|
|
|
final blueAccent = Color(0xFFFF9800);
|
|
|
|
|
final blueBackground = Color(0xFFFFFFFF);
|
|
|
|
|
|
|
|
|
|
defaultTheme({fontName}) {
|
|
|
|
|
return ThemeData(
|
|
|
|
|
fontFamily: fontName, //projectProvider.isArabic ? 'Cairo' : 'WorkSans',
|
|
|
|
|
fontFamily: fontName,
|
|
|
|
|
//projectProvider.isArabic ? 'Cairo' : 'WorkSans',
|
|
|
|
|
|
|
|
|
|
primarySwatch: Colors.blue,
|
|
|
|
|
visualDensity: VisualDensity.adaptivePlatformDensity,
|
|
|
|
@ -28,7 +30,8 @@ defaultTheme({fontName}) {
|
|
|
|
|
hintColor: Colors.grey[400],
|
|
|
|
|
disabledColor: Colors.grey[300],
|
|
|
|
|
errorColor: Color.fromRGBO(235, 80, 60, 1.0),
|
|
|
|
|
scaffoldBackgroundColor: Color(0xffE9E9E9), // Colors.grey[100],
|
|
|
|
|
scaffoldBackgroundColor: Color(0xffE9E9E9),
|
|
|
|
|
// Colors.grey[100],
|
|
|
|
|
textSelectionColor: Color.fromRGBO(80, 100, 253, 0.5),
|
|
|
|
|
textSelectionHandleColor: Colors.grey,
|
|
|
|
|
canvasColor: Colors.white,
|
|
|
|
@ -39,15 +42,15 @@ defaultTheme({fontName}) {
|
|
|
|
|
buttonColor: Colors.black,
|
|
|
|
|
toggleableActiveColor: secondaryColor,
|
|
|
|
|
indicatorColor: secondaryColor,
|
|
|
|
|
bottomSheetTheme:
|
|
|
|
|
BottomSheetThemeData(backgroundColor: HexColor('#E0E0E0')),
|
|
|
|
|
bottomSheetTheme: BottomSheetThemeData(backgroundColor: HexColor('#E0E0E0')),
|
|
|
|
|
cursorColor: Colors.grey,
|
|
|
|
|
primaryTextTheme: TextTheme(bodyText2: TextStyle(color: Colors.white)),
|
|
|
|
|
iconTheme: IconThemeData(),
|
|
|
|
|
textTheme: TextTheme(
|
|
|
|
|
bodyText1: TextStyle(color: Colors.black),
|
|
|
|
|
headline1: TextStyle(color: Colors.white),
|
|
|
|
|
headline2: TextStyle(color: Colors.white)),
|
|
|
|
|
bodyText1: TextStyle(color: Colors.black, letterSpacing: 0.6),
|
|
|
|
|
headline1: TextStyle(color: Colors.white, letterSpacing: 0.6),
|
|
|
|
|
headline2: TextStyle(color: Colors.white, letterSpacing: 0.6),
|
|
|
|
|
),
|
|
|
|
|
floatingActionButtonTheme: FloatingActionButtonThemeData(highlightElevation: 2, disabledElevation: 0, elevation: 2),
|
|
|
|
|
|
|
|
|
|
appBarTheme: AppBarTheme(
|
|
|
|
@ -63,7 +66,8 @@ defaultTheme({fontName}) {
|
|
|
|
|
|
|
|
|
|
invertThemes({fontName}) {
|
|
|
|
|
return ThemeData(
|
|
|
|
|
fontFamily: fontName, //projectProvider.isArabic ? 'Cairo' : 'WorkSans',
|
|
|
|
|
fontFamily: fontName,
|
|
|
|
|
//projectProvider.isArabic ? 'Cairo' : 'WorkSans',
|
|
|
|
|
primarySwatch: Colors.blue,
|
|
|
|
|
|
|
|
|
|
visualDensity: VisualDensity.adaptivePlatformDensity,
|
|
|
|
@ -75,13 +79,11 @@ invertThemes({fontName}) {
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
hintColor: Colors.grey[400],
|
|
|
|
|
textTheme: TextTheme(
|
|
|
|
|
bodyText1: TextStyle(color: Colors.white),
|
|
|
|
|
headline1: TextStyle(color: Colors.white),
|
|
|
|
|
headline2: TextStyle(color: Colors.white)),
|
|
|
|
|
textTheme: TextTheme(bodyText1: TextStyle(color: Colors.white), headline1: TextStyle(color: Colors.white), headline2: TextStyle(color: Colors.white)),
|
|
|
|
|
disabledColor: Colors.grey[800],
|
|
|
|
|
errorColor: Color.fromRGBO(235, 80, 60, 1.0),
|
|
|
|
|
scaffoldBackgroundColor: Color(0xff000000), // Colors.grey[100],
|
|
|
|
|
scaffoldBackgroundColor: Color(0xff000000),
|
|
|
|
|
// Colors.grey[100],
|
|
|
|
|
textSelectionColor: Color.fromRGBO(80, 100, 253, 0.5),
|
|
|
|
|
textSelectionHandleColor: Colors.grey,
|
|
|
|
|
canvasColor: Colors.black,
|
|
|
|
@ -92,8 +94,7 @@ invertThemes({fontName}) {
|
|
|
|
|
buttonColor: Colors.black,
|
|
|
|
|
toggleableActiveColor: secondaryColor,
|
|
|
|
|
indicatorColor: secondaryColor,
|
|
|
|
|
bottomSheetTheme:
|
|
|
|
|
BottomSheetThemeData(backgroundColor: HexColor('#E0E0E0')),
|
|
|
|
|
bottomSheetTheme: BottomSheetThemeData(backgroundColor: HexColor('#E0E0E0')),
|
|
|
|
|
cursorColor: Colors.black,
|
|
|
|
|
iconTheme: IconThemeData(),
|
|
|
|
|
appBarTheme: AppBarTheme(
|
|
|
|
@ -109,7 +110,8 @@ invertThemes({fontName}) {
|
|
|
|
|
|
|
|
|
|
bwThemes({fontName}) {
|
|
|
|
|
return ThemeData(
|
|
|
|
|
fontFamily: fontName, //projectProvider.isArabic ? 'Cairo' : 'WorkSans',
|
|
|
|
|
fontFamily: fontName,
|
|
|
|
|
//projectProvider.isArabic ? 'Cairo' : 'WorkSans',
|
|
|
|
|
primarySwatch: Colors.blue,
|
|
|
|
|
|
|
|
|
|
visualDensity: VisualDensity.adaptivePlatformDensity,
|
|
|
|
@ -136,7 +138,8 @@ bwThemes({fontName}) {
|
|
|
|
|
|
|
|
|
|
disabledColor: Colors.grey[800],
|
|
|
|
|
errorColor: Color.fromRGBO(235, 80, 60, 1.0),
|
|
|
|
|
scaffoldBackgroundColor: Color(0xffffffe4), // Colors.grey[100],
|
|
|
|
|
scaffoldBackgroundColor: Color(0xffffffe4),
|
|
|
|
|
// Colors.grey[100],
|
|
|
|
|
textSelectionColor: Color.fromRGBO(80, 100, 253, 0.5),
|
|
|
|
|
textSelectionHandleColor: Colors.grey,
|
|
|
|
|
canvasColor: Colors.black,
|
|
|
|
@ -146,8 +149,7 @@ bwThemes({fontName}) {
|
|
|
|
|
primaryColor: Color(0xfffffff4),
|
|
|
|
|
toggleableActiveColor: secondaryColor,
|
|
|
|
|
indicatorColor: secondaryColor,
|
|
|
|
|
bottomSheetTheme:
|
|
|
|
|
BottomSheetThemeData(backgroundColor: HexColor('#E0E0E0')),
|
|
|
|
|
bottomSheetTheme: BottomSheetThemeData(backgroundColor: HexColor('#E0E0E0')),
|
|
|
|
|
cursorColor: Colors.black,
|
|
|
|
|
iconTheme: IconThemeData(),
|
|
|
|
|
appBarTheme: AppBarTheme(
|
|
|
|
@ -163,7 +165,8 @@ bwThemes({fontName}) {
|
|
|
|
|
|
|
|
|
|
dimTheme({fontName}) {
|
|
|
|
|
return ThemeData(
|
|
|
|
|
fontFamily: fontName, //projectProvider.isArabic ? 'Cairo' : 'WorkSans',
|
|
|
|
|
fontFamily: fontName,
|
|
|
|
|
//projectProvider.isArabic ? 'Cairo' : 'WorkSans',
|
|
|
|
|
primarySwatch: Colors.blue,
|
|
|
|
|
visualDensity: VisualDensity.adaptivePlatformDensity,
|
|
|
|
|
brightness: Brightness.dark,
|
|
|
|
|