custom_dropdown library
Searchable, theme-aware single and multi-select dropdown widgets.
Classes
- CustomDropdownDecoration
- Colors, borders, text styles, and nested decorations for an enabled dropdown.
- CustomDropdownDisabledDecoration
- Appearance overrides applied when a dropdown is disabled.
-
DropdownFlutter<
T> - A dropdown with local or remote search, form validation, and selection controllers.
- ListItemDecoration
- Selection, hover, checkbox, and search-match styling for dropdown rows.
-
MultiSelectController<
T> - Controls an immutable, duplicate-free list of selected items.
- SearchFieldDecoration
- Appearance and layout overrides for the dropdown search input.
-
SingleSelectController<
T> - Controls a nullable single selection and notifies listeners when it changes.
Mixins
- CustomDropdownListFilter
- Custom matching for objects used in local-search dropdowns.
Typedefs
- DropdownGroupHeaderBuilder = Widget Function(BuildContext context, String group)
- Builds a section heading for a group of items.
-
DropdownHeaderBuilder<
T> = Widget Function(BuildContext context, T selectedItem, bool enabled) - Builds the header for a selected single item.
-
DropdownHeaderListBuilder<
T> = Widget Function(BuildContext context, List< T> selectedItems, bool enabled) - Builds the header for a list of selected items.
- DropdownHintBuilder = Widget Function(BuildContext context, String hint, bool enabled)
- Builds the placeholder displayed when no item is selected.
-
DropdownListItemBuilder<
T> = Widget Function(BuildContext context, T item, bool isSelected, VoidCallback onItemSelect) - Builds a selectable row, including any custom selection control.
- DropdownNoResultFoundBuilder = Widget Function(BuildContext context, String group)
- Builds the message displayed for an empty result set.
- DropdownSearchErrorBuilder = Widget Function(BuildContext context, Object error, VoidCallback retry)
- Builds a recoverable remote-search error without exposing raw errors by default.