Replies: 2 comments
-
u can use a previous dropdown which called DropdownM2, but to be honest, i have the same feeling that the new version dropdown is really stupid, ugly and far less flexiable than the previous one which will be removed afer flet version 0.30, ridiculous |
Beta Was this translation helpful? Give feedback.
0 replies
-
In the latest version of Flet, adding ft.Dropdown(expand=True, dense=True) to an ft.Container with a specified height shrinks ft.Dropdown.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question
I'm building a small app and added a Dropdown widget, but it appears disproportionately large compared to the rest of the UI — even though the font size inside is small (screenshot and code attached).
I suspect the size is affected by the button that triggers the dropdown. I managed to resize the arrow icon, but I can't figure out how to reduce the padding or clickable area around the button itself.
Additionally, I'm not sure how to control the spacing/margins between the dropdown list items — maybe there's a way to adjust that too?
Note: Flet 0.27 introduced a new Dropdown component. I didn’t use the older version much, so I can’t compare.
Question: How can I make the Dropdown smaller (both the button and the expanded list items)?
Code sample
Error message
No response
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions