You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add scrollPadding property to DropdownMenu #182890
scrollPadding exists as a parameter in TextField and was recently added to SearchBar (#152635), but DropdownMenu doesn't expose it.
When a DropdownMenu is placed near the bottom of a scrollable view, there is
no way to control how far above the keyboard it scrolls when focused. The inner TextField uses the default EdgeInsets.all(20.0) with no way to override it.
Current workaround
Manually listening to focus changes and calling Scrollable.ensureVisible
with a custom offset.
Proposal
DropdownMenu should have a scrollPadding parameter that passes through to
its inner TextField, consistent with TextField and SearchBar.
Agreed — this is a straightforward consistency gap. Both TextField and SearchBar expose scrollPadding, and since DropdownMenu wraps a TextField internally, it should forward this parameter.
Implementation path:
Add scrollPadding parameter to DropdownMenu with the same default as TextField (EdgeInsets.all(20.0)):
This mirrors exactly how SearchBar added the same parameter in #152635. The change is minimal and non-breaking since the default preserves existing behavior.
Hi Flutter team! I opened issue #182890 and also submitted a fix in #182892 on the same day. I noticed #183109 was opened a week later and ended up being merged. I'd love to understand what differences led to choosing that PR over mine, so I can better align with Flutter's expectations in future contributions. Thanks!
The merged PR #183109 covers DropdownMenu, but DropdownMenuFormField still doesn't expose scrollPadding. I'm opening a follow-up PR to address that remaining gap. #184059
Hi @Hamidrzash! I am really, really sorry about the situation and I want to assure you that this was by no means intentional. To give you some context, we receive a large volume of PRs each week. While reviewers (like myself) typically check our backlog on a weekly basis, sometimes a PR can slip through the cracks. This likely happened because I've been reviewing PRs from oldest to newest lately, and unfortunately, I missed yours. I sincerely appreciate all your efforts. Contributions and fixes like yours are exactly what keeps Flutter running and improving! We truly value your time and work.
Thanks for taking the time to explain, I really appreciate it! No worries at all.. I totally understand how busy things can get. Looking forward to contributing more!
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
mbcorona commentedon Feb 26, 2026
Hi @Hamidrzash, thanks for the proposal and for opening a PR, im labeling team-design to review the addition of scrollPadding to DropdownMenu
ishaquehassan commentedon Feb 27, 2026
Agreed — this is a straightforward consistency gap. Both
TextFieldandSearchBarexposescrollPadding, and sinceDropdownMenuwraps aTextFieldinternally, it should forward this parameter.Implementation path:
scrollPaddingparameter toDropdownMenuwith the same default asTextField(EdgeInsets.all(20.0)):TextFieldinsideDropdownMenu's build method:This mirrors exactly how
SearchBaradded the same parameter in #152635. The change is minimal and non-breaking since the default preserves existing behavior.Add scrollPadding property to DropdownMenu
Add scrollPadding property to DropdownMenu (#183109)
Hamidrzash commentedon Mar 24, 2026
Hi Flutter team! I opened issue #182890 and also submitted a fix in #182892 on the same day. I noticed #183109 was opened a week later and ended up being merged. I'd love to understand what differences led to choosing that PR over mine, so I can better align with Flutter's expectations in future contributions. Thanks!
@dkwingsmt
Hamidrzash commentedon Mar 24, 2026
The merged PR #183109 covers
DropdownMenu, butDropdownMenuFormFieldstill doesn't exposescrollPadding. I'm opening a follow-up PR to address that remaining gap. #184059Add scrollPadding property to DropdownMenu (flutter#183109)
dkwingsmt commentedon Apr 1, 2026
Hi @Hamidrzash! I am really, really sorry about the situation and I want to assure you that this was by no means intentional. To give you some context, we receive a large volume of PRs each week. While reviewers (like myself) typically check our backlog on a weekly basis, sometimes a PR can slip through the cracks. This likely happened because I've been reviewing PRs from oldest to newest lately, and unfortunately, I missed yours. I sincerely appreciate all your efforts. Contributions and fixes like yours are exactly what keeps Flutter running and improving! We truly value your time and work.
Hamidrzash commentedon Apr 5, 2026
Thanks for taking the time to explain, I really appreciate it! No worries at all.. I totally understand how busy things can get. Looking forward to contributing more!
Add scrollPadding property to DropdownMenu (flutter#183109)
github-actions commentedon Apr 19, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.