Skip to content

Commit

Permalink
Fix menu contrast issue after color scheme changes (#2900)
Browse files Browse the repository at this point in the history
  • Loading branch information
parlough committed Mar 18, 2024
1 parent b2594ea commit 7f2451a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
15 changes: 6 additions & 9 deletions pkgs/sketch_pad/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,11 @@ class _DartPadAppState extends State<DartPadApp> {
themeMode: themeMode,
theme: ThemeData(
useMaterial3: true,
colorScheme:
ColorScheme.fromSeed(seedColor: lightPrimaryColor).copyWith(
colorScheme: ColorScheme.fromSeed(
seedColor: lightPrimaryColor,
surface: lightSurfaceColor,
onSurface: Colors.black,
// TODO: Migrate to expanded Material 3 color palette.
// ignore: deprecated_member_use
surfaceVariant: lightSurfaceVariantColor,
surfaceContainerHighest: lightSurfaceVariantColor,
onPrimary: lightLinkButtonColor,
),
brightness: Brightness.light,
Expand All @@ -162,13 +160,12 @@ class _DartPadAppState extends State<DartPadApp> {
),
darkTheme: ThemeData(
useMaterial3: true,
colorScheme: ColorScheme.fromSeed(seedColor: darkPrimaryColor).copyWith(
colorScheme: ColorScheme.fromSeed(
seedColor: darkPrimaryColor,
brightness: Brightness.dark,
surface: darkSurfaceColor,
onSurface: Colors.white,
// TODO: Migrate to expanded Material 3 color palette.
// ignore: deprecated_member_use
surfaceVariant: darkSurfaceVariantColor,
surfaceContainerHighest: darkSurfaceVariantColor,
onSurfaceVariant: Colors.white,
onPrimary: darkLinkButtonColor,
),
Expand Down
4 changes: 1 addition & 3 deletions pkgs/sketch_pad/lib/problems.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ class ProblemsTableWidget extends StatelessWidget {
curve: animationCurve,
child: Container(
decoration: BoxDecoration(
// TODO: Migrate to expanded Material 3 color palette.
// ignore: deprecated_member_use
color: colorScheme.surfaceVariant,
color: colorScheme.surfaceContainerHighest,
),
padding: const EdgeInsets.all(denseSpacing),
child: ListView.builder(
Expand Down

0 comments on commit 7f2451a

Please sign in to comment.