Skip to content

[material_ui] Fix DropdownButtonFormField underline alignment at bottom - #12551

Closed
Mairramer wants to merge 2 commits into
flutter:mainfrom
Mairramer:fix/dropdownformfield-underline-bottom
Closed

Mairramer wants to merge 2 commits into
flutter:mainfrom
Mairramer:fix/dropdownformfield-underline-bottom

Conversation

@Mairramer

@Mairramer Mairramer commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

This PR fixes the visual issue where the underline of a DropdownButtonFormField did not align at the bottom of its expanded container.

Fixes flutter/flutter#162350

Port of flutter/flutter#181040.

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. 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.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2

@github-actions github-actions Bot added p: material_ui triage-design Should be looked at in design triage labels Aug 22, 2026
@Mairramer Mairramer changed the title Fix DropdownButtonFormField underline alignment at bottom [material_ui] Fix DropdownButtonFormField underline alignment at bottom Aug 22, 2026
isEmpty: widget._isEmpty,
isFocused: _hasPrimaryFocus,
isHovering: _isHovering,
expands: widget.isExpanded,

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.

The change in this PR is not the same as the ported PR. Please make sure they are the same. Also please make sure all items in "Pre-Review Checklist" have been checked. Thank you:)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'll definitely look into this. I'm not sure why it didn't pick up all the commits.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I used a script to automate the process, but git cherry-pick $(git rev-list --no-merges --reverse refs/flutter-master..refs/pr-181040) is failing. The script is meant to reproduce the actual commits from the PR in their original order, without including merge commits, rather than blindly cherry-picking a range of commits.

I also tried doing it manually, but I'm still getting an error. I think it might be better to use the latest valid commit instead. Maybe @Piinks can help with this.

@Mairramer Mairramer Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm validating the other PRs as well. It seems to be happening with older PRs, hmm.

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.

Have you tried to follow the instruction in flutter/flutter#188444? I give it a try and seems we are able to port the commits, see the comparison https://github.com/flutter/packages/compare/main...QuncCccccc:packages:port-181040?expand=1

@Mairramer Mairramer Aug 25, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Found the problem. Turns out it was between the chair and the keyboard. Thanks for your patience.

I had to create another PR: #12606, since this one wasn't picking up the changes due to an error on my part.

@Mairramer Mairramer closed this Aug 24, 2026
@Mairramer
Mairramer deleted the fix/dropdownformfield-underline-bottom branch August 24, 2026 19:55
@Mairramer
Mairramer restored the fix/dropdownformfield-underline-bottom branch August 24, 2026 20:03
@Mairramer Mairramer reopened this Aug 24, 2026
@fluttergithubbot

Copy link
Copy Markdown
Contributor

An existing Git SHA, 758be5f3d6209d8719ef17b757014661c08311c6, was detected, and no actions were taken.

To re-trigger presubmits after closing or re-opeing a PR, or pushing a HEAD commit (i.e. with --force) that already was pushed before, push a blank commit (git commit --allow-empty -m "Trigger Build") or rebase to continue.

@Mairramer Mairramer closed this Aug 25, 2026
@Mairramer
Mairramer deleted the fix/dropdownformfield-underline-bottom branch August 25, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p: material_ui triage-design Should be looked at in design triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DropdownButtonFormField does not scale correctly to fit its parent's height

3 participants