@@ -21,6 +21,7 @@ class Style {
2121 );
2222 }
2323
24+ // ignore: unused_element
2425 static ElevatedButtonThemeData get _customElevatedButtonTheme {
2526 return ElevatedButtonThemeData (
2627 style: ElevatedButton .styleFrom (
@@ -36,6 +37,7 @@ class Style {
3637 );
3738 }
3839
40+ // ignore: unused_element
3941 static OutlinedButtonThemeData get _customOutlinedButtonTheme {
4042 return OutlinedButtonThemeData (
4143 style: OutlinedButton .styleFrom (
@@ -51,6 +53,7 @@ class Style {
5153 );
5254 }
5355
56+ // ignore: unused_element
5457 static TextButtonThemeData get _customTextButtonTheme {
5558 return TextButtonThemeData (
5659 style: TextButton .styleFrom (
@@ -63,6 +66,7 @@ class Style {
6366 );
6467 }
6568
69+ // ignore: unused_element
6670 static InputDecorationTheme get _inputDecorationTheme {
6771 return InputDecorationTheme (
6872 prefixIconColor: const Color (0xff999999 ),
@@ -121,11 +125,9 @@ class Style {
121125 errorContainer: Color (0xFF93000A ),
122126 onError: Color (0xFF690005 ),
123127 onErrorContainer: Color (0xFFFFDAD6 ),
124- background: Color (0xFF191C1A ),
125- onBackground: Color (0xFFE1E3E0 ),
126128 surface: Color (0xFF191C1A ),
127129 onSurface: Color (0xFFE1E3E0 ),
128- surfaceVariant : Color (0xFF404944 ),
130+ surfaceContainerHighest : Color (0xFF404944 ),
129131 onSurfaceVariant: Color (0xFFBFC9C2 ),
130132 outline: Color (0xFF89938D ),
131133 onInverseSurface: Color (0xFF191C1A ),
@@ -159,11 +161,9 @@ class Style {
159161 errorContainer: Color (0xFFFFDAD6 ),
160162 onError: Color (0xFFFFFFFF ),
161163 onErrorContainer: Color (0xFF410002 ),
162- background: Color (0xFFFFFBFF ),
163- onBackground: Color (0xFF201B17 ),
164164 surface: Color (0xFFFFFBFF ),
165165 onSurface: Color (0xFF201B17 ),
166- surfaceVariant : Color (0xFFF3DFD1 ),
166+ surfaceContainerHighest : Color (0xFFF3DFD1 ),
167167 onSurfaceVariant: Color (0xFF51443B ),
168168 outline: Color (0xFF837469 ),
169169 onInverseSurface: Color (0xFFFAEFE8 ),
@@ -197,11 +197,9 @@ class Style {
197197 errorContainer: Color (0xFFFFDAD6 ),
198198 onError: Color (0xFFFFFFFF ),
199199 onErrorContainer: Color (0xFF410002 ),
200- background: Color (0xFFFFFBFF ),
201- onBackground: Color (0xFF201B17 ),
202200 surface: Color (0xFFFFFBFF ),
203201 onSurface: Color (0xFF201B17 ),
204- surfaceVariant : Color (0xFFF3DFD1 ),
202+ surfaceContainerHighest : Color (0xFFF3DFD1 ),
205203 onSurfaceVariant: Color (0xFF51443B ),
206204 outline: Color (0xFF837469 ),
207205 onInverseSurface: Color (0xFFFAEFE8 ),
@@ -235,11 +233,9 @@ class Style {
235233 errorContainer: Color (0xFFFFDAD6 ),
236234 onError: Color (0xFFFFFFFF ),
237235 onErrorContainer: Color (0xFF410002 ),
238- background: Color (0xFFFBFDFA ),
239- onBackground: Color (0xFF191C1B ),
240236 surface: Color (0xFFFBFDFA ),
241237 onSurface: Color (0xFF191C1B ),
242- surfaceVariant : Color (0xFFDBE5DF ),
238+ surfaceContainerHighest : Color (0xFFDBE5DF ),
243239 onSurfaceVariant: Color (0xFF3F4945 ),
244240 outline: Color (0xFF6F7975 ),
245241 onInverseSurface: Color (0xFFEFF1EE ),
@@ -273,11 +269,9 @@ class Style {
273269 errorContainer: Color (0xFF93000A ),
274270 onError: Color (0xFF690005 ),
275271 onErrorContainer: Color (0xFFFFDAD6 ),
276- background: Color (0xFF191C1B ),
277- onBackground: Color (0xFFE1E3E0 ),
278272 surface: Color (0xFF191C1B ),
279273 onSurface: Color (0xFFE1E3E0 ),
280- surfaceVariant : Color (0xFF3F4945 ),
274+ surfaceContainerHighest : Color (0xFF3F4945 ),
281275 onSurfaceVariant: Color (0xFFBFC9C3 ),
282276 outline: Color (0xFF89938E ),
283277 onInverseSurface: Color (0xFF191C1B ),
@@ -288,11 +282,6 @@ class Style {
288282 outlineVariant: Color (0xFF3F4945 ),
289283 scrim: Color (0xFF000000 ),
290284 );
291-
292- darkColorScheme.copyWith (
293-
294- );
295-
296285 return ThemeData (useMaterial3: true , colorScheme: darkColorScheme);
297286 }
298287
@@ -305,8 +294,9 @@ class Style {
305294 return base .copyWith (
306295 brightness: Brightness .light,
307296 appBarTheme: const AppBarTheme (
308- systemOverlayStyle:
309- SystemUiOverlayStyle (statusBarBrightness: Brightness .dark),
297+ systemOverlayStyle: SystemUiOverlayStyle (
298+ statusBarBrightness: Brightness .dark,
299+ ),
310300 ),
311301 colorScheme: const ColorScheme .light ().copyWith (
312302 primary: ColorName .accentLight,
@@ -338,7 +328,9 @@ class Style {
338328 scaffoldBackgroundColor: ColorName .backgroundDark,
339329 cardColor: ColorName .cardDark,
340330 dividerColor: ColorName .dividerDark,
341- dialogBackgroundColor: ColorName .cardDark,
331+ dialogTheme: const DialogTheme (
332+ backgroundColor: ColorName .cardDark,
333+ ),
342334 pageTransitionsTheme: _pageTransitionsTheme,
343335 textTheme: GoogleFonts .robotoTextTheme (textTheme),
344336 popupMenuTheme: _buildPopupMenuThemeData (),
@@ -357,8 +349,9 @@ class Style {
357349 final textTheme = base .textTheme;
358350
359351 return textTheme.copyWith (
360- displayLarge:
361- textTheme.displayLarge? .copyWith (fontSize: FontSizes .headline1),
352+ displayLarge: textTheme.displayLarge? .copyWith (
353+ fontSize: FontSizes .headline1,
354+ ),
362355 displaySmall:
363356 textTheme.displaySmall? .copyWith (fontSize: FontSizes .headline2),
364357 headlineMedium:
0 commit comments