Skip to content

Commit

Permalink
docs: update docs about color property in material card (flutter#117263)
Browse files Browse the repository at this point in the history
* update docs

* *

* typo

* Revert "typo"

This reverts commit 3e25d4be337b1a41d24b1a86136606d6551b30cf.

* Update card.dart

* Update card.dart

* Update card.dart
  • Loading branch information
SuhwanCha authored Jan 12, 2023
1 parent 44f5403 commit 51c2af5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/flutter/lib/src/material/card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ class Card extends StatelessWidget {
///
/// Defines the card's [Material.color].
///
/// If this property is null then [CardTheme.color] of [ThemeData.cardTheme]
/// 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
/// [ThemeData.colorScheme] is used. Otherwise, [ThemeData.cardColor] is used.
final Color? color;

/// The color to paint the shadow below the card.
Expand Down

0 comments on commit 51c2af5

Please sign in to comment.