select_form_field
2.2.0, released 5 years ago by m3uzz.com
A Flutter widget that provides a dropdown or dialog select field integrated with Form APIs.
What it does
SelectFormField extends TextFormField to display a list of selectable options in a dropdown or dialog. It returns the selected value as a string via onChanged, validator, and onSaved callbacks.
AI-written summary of version 2.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a simple select input inside a Flutter Form
- You want a dropdown or dialog picker without writing custom logic
- You require support for icons, custom text styles, and disabled items
Skip it when
- You need multi‑select or complex searchable lists
- You require advanced theming beyond basic TextStyle overrides
- You need platform‑specific picker dialogs (iOS picker, Android spinner)
Strengths
- Easy to drop into existing Form widgets
- Supports icons, custom text styles, and disabled items
- Works on all Flutter platforms (mobile, web, desktop)
Weaknesses
- Limited to single selection
- No built‑in search or multi‑select capabilities
- Styling is basic; deep customization may require fork
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
SelectFormField(
type: SelectFormFieldType.dropdown,
labelText: 'Shape',
items: [
{'value':'box','label':'Box','icon':Icon(Icons.stop)},
{'value':'circle','label':'Circle','icon':Icon(Icons.circle)},
],
onChanged: (val) => print(val),
);Alternatives
Packages that do the same job and could replace select_form_field.
- advanced_forms
Flutter form validation and state management with typed controllers and validators.
85Compare - dropdown_search
A simple, reactive, and highly customizable Flutter dropdown with search and multi-mode support.
87Compare - flutter_country_selector
A country picker widget to select a country, now re-exported from phone_form_field.
75Compare - date_field
A form field widget for picking dates and times with adaptive Material and Cupertino dialogs
75Compare