Skip to content
pubscout

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.

WASM-ready
$ flutter pub add select_form_field
Source repository

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.