Update Card.color
documentation for Material 3 (#131468)
fixes [Card color parameter not respected while using Material 3](https://github.com/flutter/flutter/issues/122177)
This commit is contained in:
parent
e81907e07a
commit
058f1660e7
@ -78,6 +78,12 @@ class Card extends StatelessWidget {
|
||||
///
|
||||
/// Defines the card's [Material.color].
|
||||
///
|
||||
/// In Material 3, [surfaceTintColor] is drawn on top of this color
|
||||
/// when the card is elevated. This might make the appearance of
|
||||
/// the card slightly different than in Material 2. To disable this
|
||||
/// feature, set [surfaceTintColor] to [Colors.transparent].
|
||||
/// See [Material.surfaceTintColor] for more details.
|
||||
///
|
||||
/// 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
|
||||
/// [ThemeData.colorScheme] is used. Otherwise, [ThemeData.cardColor] is used.
|
||||
|
Loading…
x
Reference in New Issue
Block a user