How to remove border from DropDownSearch in flutter

Viewed 1013

I am using drop down search to fetch and display the list of items from firebase but I am getting a form field box by default with this widget. I wan't to remove this as it is not matching with my UI can anyone help me in this.

Widget I used is https://pub.dev/packages/dropdown_search

I am talking about the box that appears in this. enter image description here

If you suggest me to use another widget then please also tell how to enable search oprtion in the same

1 Answers

If you want to remove border around dropdown element, set dropdownSearchDecoration to InputDecoration(border: InputBorder.none):

              DropdownSearch<String>(
                dropdownSearchDecoration: InputDecoration(border: InputBorder.none),
                // ...
              )
Related