icemanbsi / searchable_dropdown

MIT License
107 stars 162 forks source link

How to remove Done button #54

Open abhihasabe opened 4 years ago

abhihasabe commented 4 years ago

How to remove Done button near to label.

Screenshot_2020-04-23-16-24-09-630_mahindra com btl

gefer-ultra commented 4 years ago

Probably you defined doneButton property. You can remove this one, It's not required

abhihasabe commented 4 years ago

Probably you defined doneButton property. You can remove this one, It's not required

I havn't define donebutton

SearchableDropdown.multiple( items: _dropdownMenuItems, disabledHint: "Select State", selectedItems: selectedState, displayClearIcon: false, //hint: Text("Select State "), searchHint: "Select State ", label: Text( "Select State ", style: TextStyle(color: Colors.black54), ), onChanged: (value) { setState(() { selectedState = value; }); if (selectedState.length > 0) getDealers(selectedState); }, closeButton: (selectedItems) { return ("Save"); }, underline: Container( height: 1.0, decoration: BoxDecoration( border: Border( bottom: BorderSide( color: Colors.black38, width: 1.0))), ), isExpanded: true, )

pawangjain commented 4 years ago

Probably you defined doneButton property. You can remove this one, It's not required

I havn't define donebutton

SearchableDropdown.multiple( items: _dropdownMenuItems, disabledHint: "Select State", selectedItems: selectedState, displayClearIcon: false, //hint: Text("Select State "), searchHint: "Select State ", label: Text( "Select State ", style: TextStyle(color: Colors.black54), ), onChanged: (value) { setState(() { selectedState = value; }); if (selectedState.length > 0) getDealers(selectedState); }, closeButton: (selectedItems) { return ("Save"); }, underline: Container( height: 1.0, decoration: BoxDecoration( border: Border( bottom: BorderSide( color: Colors.black38, width: 1.0))), ), isExpanded: true, )

Set "doneButton" property to a dummy widget. doneButton: Container(),