dropdown_search
8.1.0, released 8 weeks ago by salimdev.ovh
A simple, reactive, and highly customizable Flutter dropdown with search and multi-mode support.
What it does
Provides a searchable dropdown widget with support for sync and async data loading, infinite scrolling, single and multi-selection, and multiple popup modes including menu, dialog, and bottom sheet.
AI-written summary of version 8.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a dropdown that supports searching through items.
- You need to load dropdown items asynchronously from an API or database with infinite scrolling.
- You need different popup presentation styles like menus, dialogs, or bottom sheets.
Skip it when
- You only need the built-in, basic Flutter DropdownButton without search or advanced customization.
- You need a form builder package that handles an entire form schema.
Strengths
- Supports both synchronous and asynchronous item loading.
- Includes infinite scrolling and lazy loading capabilities.
- Multiple display modes (menu, dialog, bottomSheet, modalBottomSheet, autocomplete).
- Adaptive platform UI supporting Material and Cupertino.
Weaknesses
- API updates in recent major versions require explicit SDK and dependency migrations.
- May be overly heavy for very simple static selection lists.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Not documented
DropdownSearch<String>(
items: (f, cs) => ["Item 1", 'Item 2', 'Item 3', 'Item 4'],
popupProps: PopupProps.menu(
disabledItemFn: (item) => item == 'Item 3',
fit: FlexFit.loose
),
)Alternatives
Packages that do the same job and could replace dropdown_search.
- searchfield
An autocomplete search widget with customizable suggestions, validation, and keyboard navigation.
79Compare - table_calendar
Highly customizable, feature-packed calendar widget for Flutter
83Compare - multiple_search_selection
A multiple selection widget with fuzzy search functionality.
78Compare - reactive_forms_annotations
Annotations for reactive_forms_generator to generate form models
68Compare
Works with
Packages commonly used together with dropdown_search: ones it builds on, ones built on it, and its own family.
- cupertino_iconsdropdown_search depends on itAsset package providing Cupertino icon font for Flutter
- material_uidropdown_search depends on itOfficial Flutter Material UI library implementing Google’s Material Design system.
- cupertino_uidropdown_search depends on itOfficial Flutter Cupertino design library implementing Apple HIG iOS and macOS user interfaces.
- form_builder_extra_fieldsBuilt on dropdown_searchAdditional ready-made form input fields for the flutter_form_builder package
- reactive_dropdown_searchBuilt on dropdown_searchA wrapper around dropdown_search to use with reactive_forms.
- country_state_city_pickerBuilt on dropdown_searchFlutter package to select countries, states, and cities using pickers.
- flutter_slickBuilt on dropdown_searchAn opinionated MVVM application framework with typed routing, auth, and form widgets.