salim-lachdhaf / searchable_dropdown

Simple and robust Dropdown with item search feature, making it possible to use an offline item list or filtering URL for easy customization.
MIT License
326 stars 316 forks source link

Height of multiSelection #602

Open czaefferer opened 9 months ago

czaefferer commented 9 months ago

Describe the bug After having selected entries from a multiSelection, each entry is output to a Container with a fixed height of 32. With a high text-zoom text will not be centered anymore, and with output consisting of more than one line, text will get cut off.

To Reproduce Use the .multiSelection example on an Android device where the text scaling is set to 2x.

Expected behavior The high should be dynamic to the content. Removing the fixed height of 32 (or making if configurable with nullbeing allowed) would achieve that: https://github.com/salim-lachdhaf/searchable_dropdown/blob/0db798a07a222435950c024abdbf8f8926798211/lib/dropdown_search.dart#L299

Screenshots Example with one line with 2x text zoom: image Example with text spread across two lines with 2x text zoom: image Output of one line example with the fixed height of 32 removed: image Output of two lines example with the fixed height of 32 removed: image

Smartphone (please complete the following information):