dropdown_button2 icon indicating copy to clipboard operation
dropdown_button2 copied to clipboard

Adding vertical padding to MenuItemStyleData causes menuHeights wrong calculations and eventually menu disappears

Open pawlowskim opened this issue 1 year ago • 0 comments

I wanted to implement list with dividers, so I used customHeights for MenuItemStyleData. If I add vertical padding along with customHeights it causes odd behaviour. Like, each time dropdown is opened height for each row is reduced by the vertical padding. Eventually menu is not visible at all, because customHeights (in _DropdownRoute constructor) are all zeros.

On the other hand, when setting hardcoded height it works.

Example code could be taken from 3. DropdownButton2 with items of different heights like dividers, just add the vertical padding to the MenuItemStyleData

pawlowskim avatar Aug 23 '23 08:08 pawlowskim