From 51c2af56c9f4b5728c771d229baa19a286c01aa0 Mon Sep 17 00:00:00 2001 From: Suhwan Cha Date: Thu, 12 Jan 2023 20:03:12 +0900 Subject: [PATCH] docs: update docs about color property in material card (#117263) * update docs * * * typo * Revert "typo" This reverts commit 3e25d4be337b1a41d24b1a86136606d6551b30cf. * Update card.dart * Update card.dart * Update card.dart --- packages/flutter/lib/src/material/card.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/flutter/lib/src/material/card.dart b/packages/flutter/lib/src/material/card.dart index ab8dc0fcf9..fd1fdc4ec5 100644 --- a/packages/flutter/lib/src/material/card.dart +++ b/packages/flutter/lib/src/material/card.dart @@ -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.