Skip to content

Commit 615dd96

Browse files
authored
Update IconButton.iconSize documentation (#137741)
fixes flutter/flutter#137580 --- This PR is just to add two sentences for `IconButton.iconSize`'s documentation.
1 parent 55eb5e1 commit 615dd96

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,9 @@ class IconButton extends StatelessWidget {
310310
/// [Icon.size] instead, then the [IconButton] would default to 24.0 and then
311311
/// the [Icon] itself would likely get clipped.
312312
///
313+
/// This property is only used when [icon] is or contains an [Icon] widget. It will be
314+
/// ignored if other widgets are used, such as an [Image].
315+
///
313316
/// If [ThemeData.useMaterial3] is set to true and this is null, the size of the
314317
/// [IconButton] would default to 24.0. The size given here is passed down to the
315318
/// [ButtonStyle.iconSize] property.

0 commit comments

Comments
 (0)