Fix tappable area for DropdownButtonFormField & add InkWell to DropdownButton#95906
Merged
fluttergithubbot merged 7 commits intoflutter:masterfrom Jan 28, 2022
Merged
Conversation
DropdownFormField & add InkWell to DropdownButtonDropdownButtonFormField & add InkWell to DropdownButton
werainkhatri
requested changes
Jan 1, 2022
Member
werainkhatri
left a comment
There was a problem hiding this comment.
Just a few nits and queries.
nt4f04uNd
reviewed
Jan 3, 2022
Contributor
Author
|
cc; @gspencergoog |
gspencergoog
requested changes
Jan 14, 2022
581a8ab to
0e72b7c
Compare
Contributor
Author
|
@werainkhatri |
werainkhatri
requested changes
Jan 18, 2022
Member
|
Another issue I found:
|
0d64e89 to
821d6c4
Compare
Contributor
Author
|
@gspencergoog @werainkhatri |
werainkhatri
approved these changes
Jan 27, 2022
Member
werainkhatri
left a comment
There was a problem hiding this comment.
This LGTM and sorry about the delay. Just a few minor nit fixes.
f55762f to
2e1096c
Compare
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Jan 28, 2022
…l` to `DropdownButton` (flutter/flutter#95906)
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Jan 28, 2022
…l` to `DropdownButton` (flutter/flutter#95906)
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Jan 28, 2022
…l` to `DropdownButton` (flutter/flutter#95906)
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Jan 28, 2022
…l` to `DropdownButton` (flutter/flutter#95906)
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Jan 28, 2022
…l` to `DropdownButton` (flutter/flutter#95906)
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/plugins
that referenced
this pull request
Feb 4, 2022
…l` to `DropdownButton` (flutter/flutter#95906)
|
Hi. When can we expect this pr make its way to stable? |
clocksmith
pushed a commit
to clocksmith/flutter
that referenced
this pull request
Mar 8, 2022
8 tasks
auto-submit bot
pushed a commit
that referenced
this pull request
Jun 22, 2023
`_hasPrimaryFocus` variable and its related code is no longer needed after using `InkWell` for `DropdownButton` at #95906
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



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.