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`.
This commit is contained in:
@@ -196,7 +196,7 @@ class ButtonStyle with Diagnosticable {
|
||||
/// The button's background fill color.
|
||||
final MaterialStateProperty<Color?>? 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<Size?>? maximumSize;
|
||||
|
||||
/// The icon's color inside of the button.
|
||||
///
|
||||
/// If this is null, the icon color will be [foregroundColor].
|
||||
final MaterialStateProperty<Color?>? iconColor;
|
||||
|
||||
/// The icon's size inside of the button.
|
||||
|
||||
Reference in New Issue
Block a user