-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Fix tappable area for DropdownButtonFormField & add InkWell to DropdownButton
#95906
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
Fix tappable area for DropdownButtonFormField & add InkWell to DropdownButton
#95906
Conversation
DropdownFormField & add InkWell to DropdownButtonDropdownButtonFormField & add InkWell to DropdownButton
werainkhatri
left a comment
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.
Just a few nits and queries.
|
cc; @gspencergoog |
581a8ab to
0e72b7c
Compare
|
@werainkhatri |
|
Another issue I found:
|
0d64e89 to
821d6c4
Compare
|
@gspencergoog @werainkhatri |
werainkhatri
left a comment
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.
This LGTM and sorry about the delay. Just a few minor nit fixes.
gspencergoog
left a comment
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.
f55762f to
2e1096c
Compare
…l` to `DropdownButton` (flutter/flutter#95906)
…l` to `DropdownButton` (flutter/flutter#95906)
…l` to `DropdownButton` (flutter/flutter#95906)
…l` to `DropdownButton` (flutter/flutter#95906)
…l` to `DropdownButton` (flutter/flutter#95906)
…l` to `DropdownButton` (flutter/flutter#95906)
|
Hi. When can we expect this pr make its way to stable? |
`_hasPrimaryFocus` variable and its related code is no longer needed after using `InkWell` for `DropdownButton` at #95906



fixes #53634
fixes #31641
This PR moves Input decoration for
DropdownButtonFormFieldtoDropdownButton, which is accessed by a private constructor forDropdownButtonFormField(this avoids this hack #53634 (comment), it can be really expensive to find layouts using this kinda hack to find inner gesture detector from DropdowButton) and addsInkWelltoDropdownButtonto match Material Design specs and most importantly fixes the tapping area fixesThe main reason for moving inputDecorator so inkWell size is equal to inputDecorator size
Adding InkWell to
DropdownButtonis required soDropdownButtonFormFieldhas a bigger tappable area just like native Android.Here is a native Android dropdown for reference


Flutter with this PR
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.