@@ -29,7 +29,7 @@ class AppThemeData {
29
29
static final Color _darkFocusColor = Colors .white.withOpacity (0.12 );
30
30
31
31
static ThemeData lightThemeData =
32
- themeData (lightColorScheme, _lightFocusColor);
32
+ themeData (lightColorScheme, _lightFocusColor);
33
33
static ThemeData darkThemeData = themeData (darkColorScheme, _darkFocusColor);
34
34
35
35
static ThemeData themeData (ColorScheme colorScheme, Color focusColor) {
@@ -39,13 +39,13 @@ class AppThemeData {
39
39
// Matches manifest.json colors and background color.
40
40
primaryColor: const Color (0xFF030303 ),
41
41
appBarTheme: AppBarTheme (
42
- backgroundColor: colorScheme.background ,
42
+ backgroundColor: colorScheme.surface ,
43
43
elevation: 0 ,
44
44
iconTheme: IconThemeData (color: colorScheme.primary),
45
45
),
46
46
iconTheme: IconThemeData (color: colorScheme.onPrimary),
47
- canvasColor: colorScheme.background ,
48
- scaffoldBackgroundColor: colorScheme.background ,
47
+ canvasColor: colorScheme.surface ,
48
+ scaffoldBackgroundColor: colorScheme.surface ,
49
49
highlightColor: Colors .transparent,
50
50
focusColor: focusColor,
51
51
snackBarTheme: SnackBarThemeData (
@@ -54,7 +54,7 @@ class AppThemeData {
54
54
_lightFillColor.withOpacity (0.80 ),
55
55
_darkFillColor,
56
56
),
57
- contentTextStyle: _textTheme.subtitle1 ! .apply (color: _darkFillColor),
57
+ contentTextStyle: _textTheme.titleMedium ! .apply (color: _darkFillColor),
58
58
),
59
59
);
60
60
}
@@ -64,9 +64,7 @@ class AppThemeData {
64
64
primaryContainer: Color (0xFF9e1718 ),
65
65
secondary: Color (0xFFEFF3F3 ),
66
66
secondaryContainer: Color (0xFFFAFBFB ),
67
- background: Color (0xFFE6EBEB ),
68
67
surface: Color (0xFFFAFBFB ),
69
- onBackground: Colors .white,
70
68
error: _lightFillColor,
71
69
onError: _lightFillColor,
72
70
onPrimary: _lightFillColor,
@@ -80,9 +78,7 @@ class AppThemeData {
80
78
primaryContainer: Color (0xFF1CDEC9 ),
81
79
secondary: Color (0xFF4D1F7C ),
82
80
secondaryContainer: Color (0xFF451B6F ),
83
- background: Color (0xFF241E30 ),
84
81
surface: Color (0xFF1F1929 ),
85
- onBackground: Color (0x0DFFFFFF ),
86
82
// White with 0.05 opacity
87
83
error: _darkFillColor,
88
84
onError: _darkFillColor,
@@ -98,15 +94,15 @@ class AppThemeData {
98
94
static const _bold = FontWeight .w700;
99
95
100
96
static final TextTheme _textTheme = TextTheme (
101
- headline4 : GoogleFonts .montserrat (fontWeight: _bold, fontSize: 20.0 ),
102
- caption : GoogleFonts .oswald (fontWeight: _semiBold, fontSize: 16.0 ),
103
- headline5 : GoogleFonts .oswald (fontWeight: _medium, fontSize: 16.0 ),
104
- subtitle1 : GoogleFonts .montserrat (fontWeight: _medium, fontSize: 16.0 ),
105
- overline : GoogleFonts .montserrat (fontWeight: _medium, fontSize: 12.0 ),
106
- bodyText1 : GoogleFonts .montserrat (fontWeight: _regular, fontSize: 14.0 ),
107
- subtitle2 : GoogleFonts .montserrat (fontWeight: _medium, fontSize: 14.0 ),
108
- bodyText2 : GoogleFonts .montserrat (fontWeight: _regular, fontSize: 16.0 ),
109
- headline6 : GoogleFonts .montserrat (fontWeight: _bold, fontSize: 16.0 ),
110
- button : GoogleFonts .montserrat (fontWeight: _semiBold, fontSize: 14.0 ),
97
+ headlineMedium : GoogleFonts .montserrat (fontWeight: _bold, fontSize: 20.0 ),
98
+ bodySmall : GoogleFonts .oswald (fontWeight: _semiBold, fontSize: 16.0 ),
99
+ headlineSmall : GoogleFonts .oswald (fontWeight: _medium, fontSize: 16.0 ),
100
+ titleMedium : GoogleFonts .montserrat (fontWeight: _medium, fontSize: 16.0 ),
101
+ labelSmall : GoogleFonts .montserrat (fontWeight: _medium, fontSize: 12.0 ),
102
+ bodyLarge : GoogleFonts .montserrat (fontWeight: _regular, fontSize: 14.0 ),
103
+ titleSmall : GoogleFonts .montserrat (fontWeight: _medium, fontSize: 14.0 ),
104
+ bodyMedium : GoogleFonts .montserrat (fontWeight: _regular, fontSize: 16.0 ),
105
+ titleLarge : GoogleFonts .montserrat (fontWeight: _bold, fontSize: 16.0 ),
106
+ labelLarge : GoogleFonts .montserrat (fontWeight: _semiBold, fontSize: 14.0 ),
111
107
);
112
- }
108
+ }
0 commit comments