Appearance
Dropdown Button Form Field #
A representation of Menu.
NikuDropDownButtonFormField
accepts all the props as same as DropDownButtonFormField.
// Using namespace
n.DropDownButtonFormField();
// Using Niku Prefix
NikuDropDownButtonFormField();
Example Usage #
final options = ["Bael", "Paimon", "Babatos"];
n.DropdownButtonFormField<String>(value)
..labelText = "Solomon Lesser Demons"
..itemsValue = options
..onChanged = handleChange;
With Label Constructor #
final options = ["Bael", "Paimon", "Babatos"];
n.DropdownButtonFormField<String>.label("Solomon Lesser Demons")
..value = value
..itemsValue = options
..onChanged = handleChange;
Factory Method #
Niku can accepts 6 factory method.
Factory Method | Equivalent Widget |
---|---|
n.DropDownButtonFormField | DropDownButtonFormField |
n.DropDownButtonFormField | DropDownButtonFormField |