Commit 7eef73dd authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Answer the question of why icon buttons are 48x48. (#10117)

parent cc91b159
...@@ -18,6 +18,7 @@ import 'theme.dart'; ...@@ -18,6 +18,7 @@ import 'theme.dart';
import 'tooltip.dart'; import 'tooltip.dart';
// Minimum logical pixel size of the IconButton. // Minimum logical pixel size of the IconButton.
// See: <https://material.io/guidelines/layout/metrics-keylines.html#metrics-keylines-touch-target-size>
const double _kMinButtonSize = 48.0; const double _kMinButtonSize = 48.0;
/// A material design icon button. /// A material design icon button.
...@@ -34,8 +35,10 @@ const double _kMinButtonSize = 48.0; ...@@ -34,8 +35,10 @@ const double _kMinButtonSize = 48.0;
/// Requires one of its ancestors to be a [Material] widget. /// 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 /// 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 /// in size, regardless of the actual [iconSize], to satisfy the [touch target
/// the icon itself is positioned within the hit region. /// 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: /// See also:
/// ///
......
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