Skip to content

Commit 8313495

Browse files
committed
Update colors
1 parent a68943c commit 8313495

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

example/lib/main.dart

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ class MyApp extends StatefulWidget {
1717
class _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,

0 commit comments

Comments
 (0)