searchable_dropdown icon indicating copy to clipboard operation
searchable_dropdown copied to clipboard

How to remove Done button

Open abhihasabe opened this issue 4 years ago • 3 comments

How to remove Done button near to label.

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

abhihasabe avatar Apr 23 '20 10:04 abhihasabe

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

gefer-ultra avatar Apr 27 '20 12:04 gefer-ultra

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, )

abhihasabe avatar Apr 27 '20 13:04 abhihasabe

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(),

pawangjain avatar May 01 '20 09:05 pawangjain