diff --git a/packages/flutter/lib/src/material/button_style.dart b/packages/flutter/lib/src/material/button_style.dart index 333dffb9d3e..7bcac2fa73c 100644 --- a/packages/flutter/lib/src/material/button_style.dart +++ b/packages/flutter/lib/src/material/button_style.dart @@ -249,12 +249,23 @@ class ButtonStyle with Diagnosticable { /// See [ThemeData.visualDensity] for more details. final MaterialStateProperty? padding; - /// The minimum size of the button itself. + /// The minimum size of the button itself before applying [visualDensity]. /// /// The size of the rectangle the button lies within may be larger /// per [tapTargetSize]. /// /// This value must be less than or equal to [maximumSize]. + /// + /// The minimum size is adjusted automatically based on [visualDensity]. + /// + /// When visual density is [VisualDensity.compact], the minimum size is + /// reduced by 8 pixels on both dimensions. + /// + /// When visual density is [VisualDensity.comfortable], the minimum size is + /// [minimumSize] reduced by 4 pixels on both dimensions. + /// + /// When visual density is [VisualDensity.standard], the minimum size is + /// [minimumSize]. final MaterialStateProperty? minimumSize; /// The button's size. @@ -263,6 +274,9 @@ class ButtonStyle with Diagnosticable { /// and [maximumSize]. Fixed size dimensions whose value is /// [double.infinity] are ignored. /// + /// The size of the rectangle the button lies within may be larger + /// per [tapTargetSize]. + /// /// To specify buttons with a fixed width and the default height use /// `fixedSize: Size.fromWidth(320)`. Similarly, to specify a fixed /// height and the default width use `fixedSize: Size.fromHeight(100)`.