-
Notifications
You must be signed in to change notification settings - Fork 29.5k
Add flag to ThemeData to expand tap targets of certain material widgets #18369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
39cd943
cf8a1c3
07d5e9b
42402a1
be5801f
ef41d7f
2a9a87e
5a90a0e
cdabb2e
d8a89ca
423a093
985fdb6
5944354
6e79412
c3fbe84
21c2941
d412128
4bf34be
61c6e30
8a3f125
7bb9ff9
3bf7bcf
e0b1f28
440c962
a90b986
dbf3dae
1174a2d
53d3be6
0e08fe8
5fb4873
090b3d2
bb6c3ac
b26dafb
c8d8cf6
2e205be
a47e806
5f475d8
7e61552
190be7b
df92deb
0145ffb
fea5961
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,16 +38,23 @@ const Color _kDarkThemeSplashColor = const Color(0x40CCCCCC); | |
|
|
||
| /// Configures the tap target and layout size of certain Material widgets. | ||
| /// | ||
| /// The following widgets are impacted: | ||
| /// Some of the impacted widgets include: | ||
| /// | ||
| /// * [FloatingActionButton], only the mini tap target size is increased. | ||
| /// * [MaterialButton] | ||
| /// * [OutlineButton] | ||
| /// * [FlatButton] | ||
| /// * [RaisedButton] | ||
| /// * [TimePicker] | ||
| /// * [SnackBar] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. at least RawMaterialButton and RawChip are missing from this list. Maybe it should just say something like "Some of the affected widgets include" or something?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed, though technically RawMaterialButton isn't effected since it specifically doesn't use ThemeData directly. |
||
| /// * [Chip] | ||
| /// * [RawChip] | ||
| /// * [InputChip] | ||
| /// * [ChoiceChip] | ||
| /// * [FilterChip] | ||
| /// * [ActionChip] | ||
| enum MaterialTapTargetSize { | ||
| /// Expands the minimum tap target size to 48dp by 48dp. | ||
| /// Expands the minimum tap target size to 48px by 48px. | ||
| /// | ||
| /// This is the default value of [ThemeData.materialHitTestSize] and the | ||
| /// recommended behavior to conform to Android accessibility recommendations. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a
breakhere for symmetryThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, here and elsewhere