Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
7eef73dd
Commit
7eef73dd
authored
May 16, 2017
by
Ian Hickson
Committed by
GitHub
May 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Answer the question of why icon buttons are 48x48. (#10117)
parent
cc91b159
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
icon_button.dart
packages/flutter/lib/src/material/icon_button.dart
+5
-2
No files found.
packages/flutter/lib/src/material/icon_button.dart
View file @
7eef73dd
...
...
@@ -18,6 +18,7 @@ import 'theme.dart';
import
'tooltip.dart'
;
// 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
;
/// 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:
///
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment