searchable_dropdown

Searchable dropdown item inside a dialog

Normal Usage
<br/>

Props

propstypesdefaultValues
itemsList<DropdownMenuItem>
onChangedValueChanged
valueT
styleTextStyle
searchHintWidget
hintWidget
disabledHintWidget
iconWidget
underlineWidget
iconEnabledColorColor
iconDisabledColorColor
iconSizeDouble24
isCaseSensitiveSearchboolfalse
isExpandedboolfalse

Usage

import 'package:searchable_dropdown/searchable_dropdown.dart';

List<DropdownMenuItem> items = [];
String selectedValue;

Widget widget() {
  for(int i=0; i < 20; i++){
    items.add(new DropdownMenuItem(
      child: new Text(
        'test ' + i.toString(),
      ),
      value: 'test ' + i.toString(),
    ));
  }

  return new SearchableDropdown(
     items: items,
     value: selectedValue,
     hint: new Text(
       'Select One'
     ),
     searchHint: new Text(
       'Select One',
       style: new TextStyle(
           fontSize: 20
       ),
     ),
     onChanged: (value) {
       setState(() {
         selectedValue = value;
       });
     },
   );
}

Libraries

searchable_dropdown