Unverified Commit 615dd968 authored by Qun Cheng's avatar Qun Cheng Committed by GitHub

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.
parent 55eb5e11
...@@ -310,6 +310,9 @@ class IconButton extends StatelessWidget { ...@@ -310,6 +310,9 @@ class IconButton extends StatelessWidget {
/// [Icon.size] instead, then the [IconButton] would default to 24.0 and then /// [Icon.size] instead, then the [IconButton] would default to 24.0 and then
/// the [Icon] itself would likely get clipped. /// 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 /// 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 /// [IconButton] would default to 24.0. The size given here is passed down to the
/// [ButtonStyle.iconSize] property. /// [ButtonStyle.iconSize] property.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment