@@ -5,23 +5,27 @@ class Style {
55 Color backgroundColor = isDark ? Colors .black : Colors .white;
66 Color foregroundColor = isDark ? Colors .white : Colors .black;
77 return ThemeData (
8- brightness: isDark ? Brightness .dark : Brightness .light,
8+ // brightness: isDark ? Brightness.dark : Brightness.light,
99 backgroundColor: backgroundColor,
1010 canvasColor: backgroundColor,
11- textSelectionColor: isDark ? Colors .white12 : Colors .grey.shade300,
1211 primaryColor: Color (0xFF249991 ),
13- accentColor: Color (0xFF249991 ),
1412 appBarTheme: AppBarTheme (
15- textTheme: TextTheme (
13+ color: backgroundColor,
14+ foregroundColor: foregroundColor,
15+ elevation: 0 ,
16+ iconTheme: IconThemeData (color: foregroundColor), toolbarTextStyle: TextTheme (
1617 titleMedium: TextStyle (
1718 color: foregroundColor,
1819 fontSize: 24.0 ,
1920 fontWeight: FontWeight .bold,
2021 ),
21- ),
22- color: backgroundColor,
23- elevation: 0 ,
24- iconTheme: IconThemeData (color: foregroundColor)),
22+ ).bodyText2, titleTextStyle: TextTheme (
23+ titleMedium: TextStyle (
24+ color: foregroundColor,
25+ fontSize: 24.0 ,
26+ fontWeight: FontWeight .bold,
27+ ),
28+ ).headline6),
2529 textTheme: TextTheme (
2630 bodyText1: TextStyle (color: foregroundColor, fontWeight: FontWeight .bold),
2731 bodyText2: TextStyle (
@@ -31,6 +35,9 @@ class Style {
3135 fontFamily: 'Roboto' ,
3236 ),
3337 ),
38+ colorScheme: ColorScheme .fromSwatch ()
39+ .copyWith (secondary: Color (0xFF249991 ), brightness: isDark ? Brightness .dark : Brightness .light),
40+ textSelectionTheme: TextSelectionThemeData (selectionColor: isDark ? Colors .white12 : Colors .grey.shade300),
3441 );
3542 }
3643}
0 commit comments