From 7eef73dd00c1e7b5d66255293f84958e4c9f90f4 Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Tue, 16 May 2017 11:36:12 -0700 Subject: [PATCH] Answer the question of why icon buttons are 48x48. (#10117) --- packages/flutter/lib/src/material/icon_button.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/flutter/lib/src/material/icon_button.dart b/packages/flutter/lib/src/material/icon_button.dart index 5658c9d80a..e1b7a850bc 100644 --- a/packages/flutter/lib/src/material/icon_button.dart +++ b/packages/flutter/lib/src/material/icon_button.dart @@ -18,6 +18,7 @@ import 'theme.dart'; import 'tooltip.dart'; // Minimum logical pixel size of the IconButton. +// See: const double _kMinButtonSize = 48.0; /// A material design icon button. @@ -34,8 +35,10 @@ const double _kMinButtonSize = 48.0; /// Requires one of its ancestors to be a [Material] widget. /// /// The hit region of an icon button will, if possible, be at least 48.0 pixels -/// in size, regardless of the actual [iconSize]. The [alignment] controls how -/// the icon itself is positioned within the hit region. +/// in size, regardless of the actual [iconSize], to satisfy the [touch target +/// size](https://material.io/guidelines/layout/metrics-keylines.html#metrics-keylines-touch-target-size) +/// requirements in the Material Design specification. The [alignment] controls +/// how the icon itself is positioned within the hit region. /// /// See also: ///