VxTextDropDown class

A material design button for selecting from a list of items.

A dropdown button lets the user select from a number of items. The button shows the currently selected item as well as an arrow that opens a menu for selecting another item.

The type T is the type of the value that each dropdown item represents. All the entries in a given menu must represent values with consistent types. Typically, an enum is used. Each DropdownMenuItem in items must be specialized with that same type argument.

The onChanged callback should update a state variable that defines the dropdown's value. It should also call State.setState to rebuild the dropdown with the new value.

{@tool dartpad --template=stateful_widget_scaffold_center}

This sample shows a DropdownButton with a large arrow icon, purple text style, and bold purple underline, whose value is one of "One", "Two", "Free", or "Four".

Available Extensions


VxTextDropDown(List<String> _items, {@required String selectedValue, @required ValueChanged<String> onChanged})


autoFocus VxTextDropDown
hashCode int
The hash code for this object. [...]
read-only, inherited
isDense VxTextDropDown
isExpanded VxTextDropDown
onChanged ValueChanged<String>
Called when user selects a value from drop down menu.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
selectedValue String
The value used to define currently selected value of VxTextDropDown.
read / write


disabledIconColor(Color color) VxTextDropDown
elevation(int val) VxTextDropDown
enabledIconColor(Color color) VxTextDropDown
focusColor(Color color) VxTextDropDown
icon(Icon _icon) VxTextDropDown
iconSize(double val) VxTextDropDown
make({Key key}) StatefulBuilder
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
textStyle(TextStyle style) VxTextDropDown
toString() String
A string representation of this object. [...]
underLine(Widget widget) VxTextDropDown


operator ==(Object other) bool
The equality operator. [...]