From 84757af9f809f6709d781779452f8b72063f9640 Mon Sep 17 00:00:00 2001 From: Chris Bobbe Date: Fri, 6 Sep 2024 12:22:33 -0700 Subject: [PATCH] Adjust ButtonStyle.{foreground,icon}Color dartdocs for new behavior (#154646) Fixes #154644. This aligns these dartdocs with the new behavior introduced in PR #143501 / 51ed348f3, where passing `iconColor: null` would cause the icon to be colored with a hard-coded default instead of with `foregroundColor`. --- packages/flutter/lib/src/material/button_style.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/flutter/lib/src/material/button_style.dart b/packages/flutter/lib/src/material/button_style.dart index f52c9c009c..a61a4e6994 100644 --- a/packages/flutter/lib/src/material/button_style.dart +++ b/packages/flutter/lib/src/material/button_style.dart @@ -196,7 +196,7 @@ class ButtonStyle with Diagnosticable { /// The button's background fill color. final MaterialStateProperty? backgroundColor; - /// The color for the button's [Text] and [Icon] widget descendants. + /// The color for the button's [Text] widget descendants. /// /// This color is typically used instead of the color of the [textStyle]. All /// of the components that compute defaults from [ButtonStyle] values @@ -274,8 +274,6 @@ class ButtonStyle with Diagnosticable { final MaterialStateProperty? maximumSize; /// The icon's color inside of the button. - /// - /// If this is null, the icon color will be [foregroundColor]. final MaterialStateProperty? iconColor; /// The icon's size inside of the button.