flet icon indicating copy to clipboard operation
flet copied to clipboard

`item_height` not implemented causes Dropdown selected Option to render outside of control element if `height < item_height`

Open scipio-nl opened this issue 3 years ago • 6 comments

scipio-nl avatar Sep 30 '22 04:09 scipio-nl

https://user-images.githubusercontent.com/82219871/193192844-62dac2bc-ff4a-4ac2-afe7-bd5cccc96f15.mov

scipio-nl avatar Sep 30 '22 04:09 scipio-nl

what's the corresponding Flutter's widget property?

FeodorFitsner avatar Sep 30 '22 21:09 FeodorFitsner

itemHeight, (and maybe also iconSize)

scipio-nl avatar Oct 01 '22 11:10 scipio-nl

FYI: in the video I tried to demonstrate 2 issues: -1- if the app window is "flat", the option list gets cut off, and more urgent: -2- how a selected option isn't shown due to itemHeight > Height

scipio-nl avatar Oct 01 '22 11:10 scipio-nl

1 - that's expected as the dropdown cannot be drawn outside the application window. Flutter dropdown is not a native OS dropdown which has its own "window" - it's just "painted" on a canvas. 2 - have you tried reducing Dropdown's content_padding?

FeodorFitsner avatar Oct 01 '22 17:10 FeodorFitsner

I'll check if I can work with content_padding on this matter; will report back.

scipio-nl avatar Oct 03 '22 05:10 scipio-nl

content_padding works.

image

liudonghua123 avatar Oct 28 '22 23:10 liudonghua123

Thank you for the update!

FeodorFitsner avatar Oct 28 '22 23:10 FeodorFitsner