Skip to content

Fix dropdown menu width not matching button width#427

Open
keijokapp wants to merge 1 commit intoAhmedLSayed9:masterfrom
keijokapp:fix-dropdown-menu-width
Open

Fix dropdown menu width not matching button width#427
keijokapp wants to merge 1 commit intoAhmedLSayed9:masterfrom
keijokapp:fix-dropdown-menu-width

Conversation

@keijokapp
Copy link
Copy Markdown

@keijokapp keijokapp commented Mar 28, 2026

I was updating from 2.3.9 to 3.0.0 and noticed some extra horizontal padding around the dropdown menu. I don't think this is intentional. The Key that is used to calculate the position should encapsulate the entire button, including its decoration.

EDIT: Wtih this change, the widget._inputDecoration?.isDense == false special case now messes things up. I'm sure why this special case is necessary.

@AhmedLSayed9
Copy link
Copy Markdown
Owner

The Key that is used to calculate the position should encapsulate the entire button, including its decoration.

We can’t go with that, it would break the menu’s open position. Check:
Simulator Screenshot - iPhone 17 Pro - 2026-03-28 at 19 24 25

I was updating from 2.3.9 to 3.0.0 and noticed some extra horizontal padding around the dropdown menu

Can you please open an issue with a minimal sample that produces this?

@AhmedLSayed9 AhmedLSayed9 added the question Further information is requested label Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

question Further information is requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants