How to remove border from DropDownSearch in flutter

636

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

              DropdownSearch<String>(
                dropdownSearchDecoration: InputDecoration(border: InputBorder.none),
                // ...
              )
Share:
636
yogender
Author by

yogender

Updated on December 29, 2022

Comments

  • yogender
    yogender over 1 year

    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