Drop down Field
Type
widget
Description
Dropdown is a closed-ended field type where people can select only one answer from a menu of choices, ideal for presenting a long list of options without cluttering your form.
Associated Syntax
Property
| Name | Summary | Syntax |
|---|---|---|
| menuText | The menu items of the popup | set the menuText of <widget> to <List> get the menuText of <widget> |
| menuTextColor | The color of the menu text. | set the menuTextColor of <widget> to <Color> get the menuTextColor of <widget> |
| themeData | The theme mappings of this widget | set the themeData of <widget> to {<array>} get the themeData of <widget> |
| menuBackgroundColor | The back color of the menu | set the menuBackgroundColor of <widget> to <Color> get the menuBackgroundColor of <widget> |
| supportingTextColor | The color of the widget supporting text. | set the supportingTextColor of <widget> to <Color> get the supportingTextColor of <widget> |
| roundedRadius | The radius of the button corners | set the roundedRadius of <widget> to pRoundedRadius get the roundedRadius of <widget> |
| showLabel | Make the label visible. | set the showLabel of <widget> to {true | false} get the showLabel of <widget> |
| label | The label summary | set the label of <widget> to pLabel |
| iconSize | The size of the arrow icon of the button | set the iconSize of <widget> to pIconSize get the iconSize of <widget> |
| focusColor | The color used to remark when widget is focused. | set the focusColor of <widget> to <Color> get the focusColor of <widget> |
| saveContent | Linked to the saveContent property of the materialField widget. | set the saveContent of <widget> to pValue get the saveContent of <widget> |
| leadingIconName | The icon name of the leading icon. | set the leadingIconName of <widget> to pIcon get the leadingIconName of <widget> |
| leadingIcon | Show the leading icon. | set the leadingIcon of <widget> to {true | false} get the leadingIcon of <widget> |
| variant | The stye of the widget. | set the variant of <widget> to variant get the variant of <widget> |
| hoverColor | The hover color of the widget's background. | set the hoverColor of <widget> to <Color> get the hoverColor of <widget> |
| menuHiliteTextColor | The color of the text of the menu selection. | set the menuHiliteTextColor of <widget> to <Color> get the menuHiliteTextColor of <widget> |
| borderColor | The color of the widget's border. | set the borderColor of <widget> to <Color> get the borderColor of <widget> |
| defaultText | Set the defaultText of the widget. | set the defaultText of <widget> to pValue get the defaultText of <widget> |
| trailingIconName | The icon name of the trailing icon. | set the trailingIconName of <widget> to pIcon get the trailingIconName of <widget> |
| menuHiliteColor | The color of the menu selection. | set the menuHiliteColor of <widget> to <Color> get the menuHiliteColor of <widget> |
| floatLabel | The behavior of the label. | set the floatLabel of <widget> to floatLabel get the floatLabel of <widget> |
| backgroundColor | The color of the widget's background. | set the backgroundColor of <widget> to <Color> get the backgroundColor of <widget> |
| text | The text contained in the field widget. | set the text of <widget> to pText get the text of <widget> |