Skip to content

Commit

Permalink
Better dark cards
Browse files Browse the repository at this point in the history
  • Loading branch information
Feichtmeier committed May 7, 2024
1 parent 9fdacf5 commit 6595100
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/src/theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ ThemePair phoenixTheme({
navigationRailTheme: _naviRailTheme(darkScheme),
navigationBarTheme: _naviBarTheme(darkScheme),
appBarTheme: _appBarTheme(darkScheme),
cardTheme: CardTheme(
color: darkScheme.surface.scale(
lightness: 0.03,
),
),
)
);
}
Expand Down Expand Up @@ -211,7 +216,7 @@ Color _getSwitchThumbColor(Set<MaterialState> states, ColorScheme colorScheme) {
}

Color _getSwitchTrackColor(Set<MaterialState> states, ColorScheme colorScheme) {
final uncheckedColor = colorScheme.primary.withOpacity(.25);
final uncheckedColor = colorScheme.onSurface.withOpacity(.25);
final disabledUncheckedColor = colorScheme.onSurface.withOpacity(.15);
final disabledCheckedColor = colorScheme.onSurface.withOpacity(.18);

Expand Down

0 comments on commit 6595100

Please sign in to comment.