search_choices
2.3.1, released 2 years ago by jod.li
Customizable searchable single or multiple choice dropdown widget for Flutter.
WASM-ready
What it does
Provides a widget to search through single or multiple choice lists inside a dialog box or menu. It supports pagination, future/network/API searches, sorting, and filtering.
AI-written summary of version 2.3.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a dropdown or picker that allows searching through a large list of items.
- You require single or multiple selection support with custom filters, sorting, or pagination.
- You need asynchronous/future-based data loading for dropdown choices.
Skip it when
- You only need a simple, standard non-searchable dropdown menu.
- You require complex form validation frameworks beyond standard FormField validation.
Strengths
- Highly customizable UI and dialog layout.
- Supports future/API searches, pagination, and custom filters/sorting.
- Handles both single and multiple selection modes.
Weaknesses
- Large API surface with many optional parameters which can increase complexity.
- Documentation for advanced use cases primarily relies on example projects.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
SearchChoices.single(
items: [
DropdownMenuItem(
child: Text("Item 1"),
value: 1,
),
DropdownMenuItem(
child: Text("Item 2"),
value: 2,
),
],
value: 1,
hint: "Select one",
searchHint: "Search",
onChanged: (value) {},
isExpanded: true,
)Alternatives
Packages that do the same job and could replace search_choices.
- searchfield
An autocomplete search widget with customizable suggestions, validation, and keyboard navigation.
79Compare - multiple_search_selection
A multiple selection widget with fuzzy search functionality.
78Compare - month_picker_dialog
Material-style dialog for selecting months, month ranges, and years.
86Compare - table_calendar
Highly customizable, feature-packed calendar widget for Flutter
83Compare