A DropdownTextfield is a material design TextField. The DropDownButton is a widget that we can use to select one unique value or multivalue from a set of values.
- Searchable dropdown
- Single & multi selection
- Material dropdown
- Easy customizable UI
- Easy implementation into statelessWidget
- ToolTip dialogue for multi selection dropdown item.
Single dropdown | Single dropdown with search option | Single dropdown with clear option |
Multiple dropdown | Multiple dropdown with all selected item |
single and multiple dropdown controller It must be type of SingleValueDropDownController or MultiValueDropDownController.
define the radius of dropdown List ,default value is 12
initial value ,if it is null or not exist in dropDownList then it will not display value.
dropDownList,List of dropdown values List
it will listen and return value when item selected from dropdown list for single Selection Dropdown it will return single DropDownValueModel object, and for multi Selection Dropdown ,it will return list of DropDownValueModel object,
override default textfield decoration
customize dropdown icon size and color
isEnabled=false to disable textfield,default value true
enableSearch=true to enable search option in dropdown,as of now this feature enabled only for single selection dropdown
set displayCompleteItem=true, if you want show complete list of selected item in textfield else it will display like "number_of_item item selected"
Maximum number of dropdown item to display,default value is 6
override default search keyboard type,only applicable if enableSearch=true,
searchAutofocus=true to autofocus search textfield,only applicable if enableSearch=true, default value is false
searchShowCursor=false to hide cursor from search textfield,only applicable if enableSearch=true,
clearOption=false to hide clear suffix icon button from textfield.
customize Clear icon size and color
space between textfield and list ,default value is 0
dropdown List item padding
multi dropdown submit button text
multi dropdown submit button color
multi dropdown submit button text style
dropdown list item text style
customize multiple checkbox property