Skip to content

Dropdown Button

Dropdown Button demo

A representation of Menu.

NikuDropDownButton accepts all the props as same as DropDownButton.

dart
// Using namespace
n.DropDownButton<T>(state);

// Using Niku Prefix
NikuDismissible<T>(state);

Example Usage

dart
final options = ["Mountain", "Ocean", "Star"];

n.DropdownButton<String>(option.value)
    ..itemsValue = options
    ..onChanged = updateNewValue;

Defination

View Defination on pub.dev