opt: dynamic card theme

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-16 12:24:40 +08:00
parent b9aa968a2e
commit ed4d2685b4

View File

@@ -242,7 +242,11 @@ class MyApp extends StatelessWidget {
),
cardTheme: CardTheme(
elevation: 1,
surfaceTintColor: isDark ? colorScheme.onSurfaceVariant : null,
surfaceTintColor: isDynamic
? colorScheme.onSurfaceVariant
: isDark
? colorScheme.onSurfaceVariant
: null,
shadowColor: Colors.transparent,
),
// dialogTheme: DialogTheme(