dropdown_button2 library
Classes
- ButtonStyleData
- A class to configure the theme of the button.
-
DropdownButton2<
T> - A Material Design button for selecting from a list of items.
-
DropdownButtonFormField2<
T> - A FormField that contains a DropdownButton2.
-
DropdownItem<
T> - Represents an item in a dropdown menu created by a DropdownButton2.
-
DropdownSearchData<
T> - A class to configure searchable dropdowns.
-
DropdownSeparator<
T> - Represents a separator widget in a dropdown menu created by a DropdownButton2.
- DropdownStyleData
- A class to configure the theme of the dropdown menu.
- IconStyleData
- A class to configure the theme of the button's icon.
- MenuItemStyleData
- A class to configure the theme of the dropdown menu items.
Enums
- DropdownDirection
- The direction of the dropdown menu in relation to the button.
Functions
Typedefs
- DropdownBuilder = Widget Function(BuildContext context, Widget child)
- A builder to customize the dropdown menu.
- OnMenuStateChangeFn = void Function(bool isOpen)
- Signature for the callback that's called when when the dropdown menu opens or closes.
-
SearchMatchFn<
T> = bool Function(DropdownItem< T> item, String searchValue) - Signature for the callback for the match function used for searchable dropdowns.
- SelectedMenuItemBuilder = Widget Function(BuildContext context, Widget child)
- A builder to customize the selected menu item.