multi_dropdown library
A highly customizable multi-select dropdown widget for Flutter.
Provides MultiDropdown, MultiSelectController, DropdownItem, and extensive decoration classes for building rich selection experiences with search, form validation, async data loading, and accessibility support.
See the example app for real-world usage demonstrations.
Classes
- ChipDecoration
- Configuration class for customizing the appearance of chips in the multi-select dropdown.
- DropdownDecoration
- Represents the decoration for the dropdown.
-
DropdownGroup<
T> - Represents a named group of dropdown items.
-
DropdownItem<
T> - Represents an item in a dropdown menu.
- DropdownItemDecoration
- Represents the decoration for the dropdown items.
- FieldDecoration
- Represents the decoration for the dropdown field.
- GroupHeaderDecoration
- Configuration class for customizing the appearance of group headers in the dropdown when using MultiDropdown with grouped items.
-
MultiDropdown<
T extends Object> - A multiselect dropdown widget.
-
MultiSelectController<
T> - Controller for programmatically managing the MultiDropdown widget.
- SearchFieldDecoration
- Represents the decoration for the search field in the dropdown.
Enums
- DropdownMode
- Controls how the dropdown items are presented to the user.
- ExpandDirection
- Controls the direction in which the dropdown overlay expands.
Typedefs
-
DropdownItemBuilder<
T> = Widget Function(DropdownItem< T> item, int index, VoidCallback onTap) - typedef for the dropdown item builder.
-
FutureRequest<
T> = Future< List< Function()DropdownItem< >T> > - typedef for the future request.
-
OnSearchChanged
= ValueChanged<
String> - typedef for the callback when the search field value changes.
-
OnSelectionChanged<
T> = void Function(List< T> selectedItems) - typedef for the callback when the item is selected/de-selected/disabled.
-
SearchFilter<
T> = List< DropdownItem< Function(String query, List<T> >DropdownItem< items)T> > - Typedef for a custom search filter function.
-
SelectedItemBuilder<
T> = Widget Function(DropdownItem< T> item) - typedef for the selected item builder.