From 615dd968e79b85e679a7f288522f39417f5149c7 Mon Sep 17 00:00:00 2001 From: Qun Cheng <36861262+QuncCccccc@users.noreply.github.com> Date: Thu, 2 Nov 2023 10:24:08 -0700 Subject: [PATCH] Update `IconButton.iconSize` documentation (#137741) fixes https://github.com/flutter/flutter/issues/137580 --- This PR is just to add two sentences for `IconButton.iconSize`'s documentation. --- packages/flutter/lib/src/material/icon_button.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/flutter/lib/src/material/icon_button.dart b/packages/flutter/lib/src/material/icon_button.dart index 5beb239ea9..6eac56d2b2 100644 --- a/packages/flutter/lib/src/material/icon_button.dart +++ b/packages/flutter/lib/src/material/icon_button.dart @@ -310,6 +310,9 @@ class IconButton extends StatelessWidget { /// [Icon.size] instead, then the [IconButton] would default to 24.0 and then /// the [Icon] itself would likely get clipped. /// + /// This property is only used when [icon] is or contains an [Icon] widget. It will be + /// ignored if other widgets are used, such as an [Image]. + /// /// If [ThemeData.useMaterial3] is set to true and this is null, the size of the /// [IconButton] would default to 24.0. The size given here is passed down to the /// [ButtonStyle.iconSize] property.