dropdown_search with async data not looking properly

I need a dropdown which can fetch data on click i get to know dropdown_search library it solved both problems first of search items and second of get data asynchronously but i am facing problem now that its height is very large and i am shrinking it using constraint it works but, dropdown icon goes down and text go up how can i fix that.

DropdownSearch<UserModel>(
                  asyncItems: (filter) => getData(filter),
                  compareFn: (i, s) => i.isEqual(s),
                  dropdownDecoratorProps: DropDownDecoratorProps(
                    textAlignVertical: TextAlignVertical.center,
                    baseStyle: TextStyle(
                      fontSize: 12,
                    ),
                  ),
                  popupProps: PopupPropsMultiSelection.menu(
                    // isFilterOnline: true,
                    showSelectedItems: true,
                    showSearchBox: true,
                  ),
                )

Here is preview of result

Any Idea how can i fix this.

  • The code that you posted does not seem to reproduce the issue at least on my machine. Can you create a simple example app that can be run and it only contains dropdownsearch widget and the usermodel? stackoverflow.com/help/minimal-reproducible-example

    – 

Leave a Comment