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.
-
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.
-
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
- 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.
-
SelectedItemBuilder<
T> = Widget Function(DropdownItem< T> item) - typedef for the selected item builder.