Skip to content

Commit 84757af

Browse files
authored
Adjust ButtonStyle.{foreground,icon}Color dartdocs for new behavior (flutter#154646)
Fixes flutter#154644. This aligns these dartdocs with the new behavior introduced in PR flutter#143501 / 51ed348, where passing `iconColor: null` would cause the icon to be colored with a hard-coded default instead of with `foregroundColor`.
1 parent 8c6513d commit 84757af

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/flutter/lib/src/material/button_style.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class ButtonStyle with Diagnosticable {
196196
/// The button's background fill color.
197197
final MaterialStateProperty<Color?>? backgroundColor;
198198

199-
/// The color for the button's [Text] and [Icon] widget descendants.
199+
/// The color for the button's [Text] widget descendants.
200200
///
201201
/// This color is typically used instead of the color of the [textStyle]. All
202202
/// of the components that compute defaults from [ButtonStyle] values
@@ -274,8 +274,6 @@ class ButtonStyle with Diagnosticable {
274274
final MaterialStateProperty<Size?>? maximumSize;
275275

276276
/// The icon's color inside of the button.
277-
///
278-
/// If this is null, the icon color will be [foregroundColor].
279277
final MaterialStateProperty<Color?>? iconColor;
280278

281279
/// The icon's size inside of the button.

0 commit comments

Comments
 (0)