We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44f5403 commit 51c2af5Copy full SHA for 51c2af5
packages/flutter/lib/src/material/card.dart
@@ -78,8 +78,9 @@ class Card extends StatelessWidget {
78
///
79
/// Defines the card's [Material.color].
80
81
- /// If this property is null then [CardTheme.color] of [ThemeData.cardTheme]
82
- /// is used. If that's null then [ThemeData.cardColor] is used.
+ /// If this property is null then the ambient [CardTheme.color] is used. If that is null,
+ /// and [ThemeData.useMaterial3] is true, then [ColorScheme.surface] of
83
+ /// [ThemeData.colorScheme] is used. Otherwise, [ThemeData.cardColor] is used.
84
final Color? color;
85
86
/// The color to paint the shadow below the card.
0 commit comments