Skip to content

Add scrollPadding property to DropdownMenuFormField - #184059

Closed
Hamidrzash wants to merge 4 commits into
flutter:masterfrom
Hamidrzash:add-scroll-padding-to-dropdown-form-field
Closed

Hamidrzash wants to merge 4 commits into
flutter:masterfrom
Hamidrzash:add-scroll-padding-to-dropdown-form-field

Conversation

@Hamidrzash

Copy link
Copy Markdown

Follow-up to #183109, which added scrollPadding to DropdownMenu.

DropdownMenuFormField wraps DropdownMenu but did not forward the scrollPadding parameter. This PR adds it for consistency.

Related Issues

Completes #182890

Pre-launch Checklist

@github-actions github-actions Bot added framework flutter/packages/flutter repository. See also f: labels. p: material_ui material_ui package in flutter/packages labels Mar 24, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds the scrollPadding property to DropdownMenuFormField, forwarding it to the underlying DropdownMenu widget. This change aligns the form field variant with the base widget. A corresponding test has been added to verify that the property is passed correctly, checking both the default and a custom value.

Comment thread packages/flutter/lib/src/material/dropdown_menu_form_field.dart
@navaronbracke navaronbracke added the CICD Run CI/CD label Mar 24, 2026
@dkwingsmt
dkwingsmt self-requested a review March 25, 2026 18:30
@github-actions github-actions Bot removed the CICD Run CI/CD label Mar 28, 2026

@dkwingsmt dkwingsmt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you!

@dkwingsmt dkwingsmt added the CICD Run CI/CD label Mar 31, 2026
@github-actions github-actions Bot removed the CICD Run CI/CD label Mar 31, 2026
@dkwingsmt dkwingsmt added autosubmit Merge PR when tree becomes green via auto submit App CICD Run CI/CD labels Mar 31, 2026
@Hamidrzash

Copy link
Copy Markdown
Author

Hi @dkwingsmt the PR seems to be stuck on google testing...anything i should do?

@dkwingsmt
dkwingsmt self-requested a review April 8, 2026 18:30
@github-actions github-actions Bot removed the CICD Run CI/CD label Apr 8, 2026
@dkwingsmt dkwingsmt added the CICD Run CI/CD label Apr 8, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Apr 8, 2026
@auto-submit

auto-submit Bot commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

autosubmit label was removed for flutter/flutter/184059, because - The status or check suite Windows build_tests_3_9 has failed. Please fix the issues identified (or deflake) before re-applying this label.

@dkwingsmt

Copy link
Copy Markdown
Contributor

Thanks for your contribution! This PR has reached completion, however we're not able to merge this PR for the moment due to the Material/Cupertino code freeze (#184093). As soon as the decoupling is complete, we will post a way to port this PR to the new packages to land. In the meantime, I'll convert this PR to a draft and apply a label so that we can quickly find it when the freeze is lifted.

@dkwingsmt
dkwingsmt marked this pull request as draft April 8, 2026 19:56
@dkwingsmt dkwingsmt added waiting for code freeze This PR is waiting for a code freeze to resolve. and removed CICD Run CI/CD labels Apr 8, 2026
@flutter-dashboard

Copy link
Copy Markdown

This pull request has been changed to a draft. The currently pending flutter-gold status will not be able to resolve until a new commit is pushed or the change is marked ready for review again.

For more guidance, visit Writing a golden file test for package:flutter.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@Piinks Piinks added the Decoupling: Not ready to port yet Instructions will be provided when this is ready to move to flutter/packages. label Jun 24, 2026
@Piinks

Piinks commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

I've marked this PR as not ready to port to flutter/packages yet.
We'll provide instructions to move this change over to material_ui/cupertino_ui once ready to receive PRs. Thank you!

@Piinks

Piinks commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

This PR is now ready to port over to flutter/packages!

See instructions and guidance in #188444 Thank you!

@Piinks Piinks added Decoupling: Port to flutter/packages This PR is ready to be ported to flutter/packages. We will provide instructions to do so. and removed waiting for code freeze This PR is waiting for a code freeze to resolve. Decoupling: Not ready to port yet Instructions will be provided when this is ready to move to flutter/packages. labels Sep 2, 2026
@Hamidrzash

Copy link
Copy Markdown
Author

Ported to flutter/packages: flutter/packages#12735

Closing this in favor of the new PR.

@Hamidrzash Hamidrzash closed this Sep 3, 2026
auto-submit Bot pushed a commit to flutter/packages that referenced this pull request Oct 5, 2026
…2735)

Port of flutter/flutter#184059 to flutter/packages, per the instructions in flutter/flutter#188444.

This change adds the `scrollPadding` property to `DropdownMenuFormField` and forwards it to the underlying `DropdownMenu`, bringing the form field variant into parity with `DropdownMenu`.

## Related Issues

The original issue has been closed, but the following comment explains the remaining gap that this PR addresses:

flutter/flutter#182890 (comment)

> The merged PR [#183109](flutter/flutter#183109) covers `DropdownMenu`, but `DropdownMenuFormField` still doesn't expose `scrollPadding`. I'm opening a follow-up PR to address that remaining gap. [#184059](flutter/flutter#184059)

## Pre-Review Checklist

**Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Decoupling: Port to flutter/packages This PR is ready to be ported to flutter/packages. We will provide instructions to do so. framework flutter/packages/flutter repository. See also f: labels. p: material_ui material_ui package in flutter/packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants