Unverified Commit 058f1660 authored by Taha Tesser's avatar Taha Tesser Committed by GitHub

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)
parent e81907e0
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment