Skip to content

Commit 6595100

Browse files
committed
Better dark cards
1 parent 9fdacf5 commit 6595100

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/src/theme.dart

+6-1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ ThemePair phoenixTheme({
5252
navigationRailTheme: _naviRailTheme(darkScheme),
5353
navigationBarTheme: _naviBarTheme(darkScheme),
5454
appBarTheme: _appBarTheme(darkScheme),
55+
cardTheme: CardTheme(
56+
color: darkScheme.surface.scale(
57+
lightness: 0.03,
58+
),
59+
),
5560
)
5661
);
5762
}
@@ -211,7 +216,7 @@ Color _getSwitchThumbColor(Set<MaterialState> states, ColorScheme colorScheme) {
211216
}
212217

213218
Color _getSwitchTrackColor(Set<MaterialState> states, ColorScheme colorScheme) {
214-
final uncheckedColor = colorScheme.primary.withOpacity(.25);
219+
final uncheckedColor = colorScheme.onSurface.withOpacity(.25);
215220
final disabledUncheckedColor = colorScheme.onSurface.withOpacity(.15);
216221
final disabledCheckedColor = colorScheme.onSurface.withOpacity(.18);
217222

0 commit comments

Comments
 (0)