flutter_multiselect
1.0.2, released 2 years ago by hiddencaliber.com
Flutter package for a multi-select UI widget with filter and validation support.
What it does
Provides a multi-select form widget that bridges the gap where default iOS and Android controls lack native multi-selection. It offers a modal interface with customizable buttons, search filtering, and options validation.
AI-written summary of version 1.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a form field that lets users select multiple options from a data source.
- You require filtering/searching through the list of choices within the selection modal.
Skip it when
- You need a simple inline wrapping chip layout rather than a modal-based picker.
Strengths
- Supports filtering and search functionality inside the selection modal.
- Highly customizable UI elements including buttons, colors, and text.
- Compatible across multiple platforms including mobile, web, and desktop.
Weaknesses
- Relies on passing data via maps (dataSource, textField, valueField) rather than strongly-typed Dart objects.
- Limited documentation beyond basic examples.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
MultiSelect(
autovalidate: false,
titleText: "Countries",
validator: (value) {
if (value == null) {
return 'Please select one or more option(s)';
}
},
errorText: 'Please select one or more option(s)',
dataSource: [
{
"display": "Australia",
"value": 1,
},
{
"display": "Canada",
"value": 2,
}
],
textField: 'display',
valueField: 'value',
filterable: true,
required: true,
value: null,
onSaved: (value) {
print('The saved values are $value');
}
)Alternatives
Packages that do the same job and could replace flutter_multiselect.
- board_datetime_picker
Picker to select date and time for Flutter. It is both a calendar and a picker, offering a variety of options as a package.
87Compare - duration_picker
A time picker widget for selecting hours and minutes as durations.
86Compare - advanced_forms
Flutter form validation and state management with typed controllers and validators.
85Compare - textfield_search
TextField widget to search and select values from a static list or future.
76Compare