File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ class MyApp extends StatefulWidget {
1717class _MyAppState extends State <MyApp > {
1818 ThemeMode _themeMode = ThemeMode .dark;
1919 static const Color _darkBackground = Color (0xFF1F2238 );
20+ static final Color _darkCard = Color .alphaBlend (
21+ Colors .white.withAlpha (18 ),
22+ _darkBackground,
23+ );
2024
2125 @override
2226 Widget build (BuildContext context) {
@@ -35,12 +39,11 @@ class _MyAppState extends State<MyApp> {
3539 brightness: Brightness .dark,
3640 ).copyWith (
3741 surface: _darkBackground,
38- background: _darkBackground,
3942 ),
40- cardTheme: CardThemeData (
41- color : Color . alphaBlend (
42- Colors .white. withAlpha ( 18 ),
43- _darkBackground ,
43+ cardTheme: CardThemeData (color : _darkCard),
44+ dropdownMenuTheme : DropdownMenuThemeData (
45+ menuStyle : MenuStyle (
46+ backgroundColor : WidgetStateProperty . all (_darkCard) ,
4447 ),
4548 ),
4649 scaffoldBackgroundColor: _darkBackground,
You can’t perform that action at this time.
0 commit comments