v1.2.0dropdown_textfield
下拉文字框是一種材質設計的文字框。下拉按鈕是一個我們可以用來從一組值中選擇一個唯一值或多個值的組件。
181喜歡 4500近 30 天下載150Pub 分數
AndroidiOSWebmacOSWindowsLinux
自訂下拉選單
{"sdk":"flutter"}^1.18.0^2.0.5{"sdk":"flutter"}^4.0.0以下為英文專案原文快照,最新內容請造訪 GitHub。
A DropdownTextfield is a Material Design TextField. The DropDownButton is a widget that can be used to select one unique value or multiple values from a set of options.
StatelessWidget| Single Dropdown | Single Dropdown with Search Option | Single Dropdown with Clear Option |
|---|---|---|
| Single Dropdown | Single Dropdown with Search Option | Single Dropdown with Clear Option |
| Multiple Dropdown | Multiple Dropdown with All Selected Items |
|---|---|
| Multiple Dropdown | Multiple Dropdown with All Selected Items |
You need to use SingleValueDropDownController for single dropdown and MultiValueDropDownController for multiple dropdown.
dropDownList, it will not display any value.<DropDownValueModel>.DropDownValueModel object for single selection dropdown, and a list of DropDownValueModel objects for multi-selection dropdown.false to disable the text field. Default value is true.true to enable the search option in the dropdown. Currently available only for single selection dropdown.true to display the complete list of selected items in the text field. Otherwise, it will display as "number_of_items selected".enableSearch=true.true to autofocus the search text field. Applicable only if enableSearch=true. Default value is false.false to hide the cursor from the search text field. Applicable only if enableSearch=true.false to hide the clear suffix icon button from the text field.Seeking contributions to improve the DropdownTextfield! If you have ideas for new features, optimizations, or bug fixes, please feel free to open a pull request or issue on our GitHub repository. Your contributions are greatly appreciated and will help make this package even better.