Skip to content
pubscout

dropdown_textfield

1.2.0, released 2 years ago by an unverified publisher

A Material Design text field with single and multi-selection searchable dropdown options.

WASM-ready
$ flutter pub add dropdown_textfield
Source repository

What it does

Provides a DropDownTextField widget that acts as a Material Design text field while allowing users to select single or multiple values from a custom dropdown list. It features built-in search functionality, clear options, checkboxes, and dedicated controllers for single or multi-value management.

AI-written summary of version 1.2.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a text field combined with a dropdown selection in a Flutter form.
  • You require searchable dropdown items for single selection.
  • You need multi-selection dropdowns with checkbox support.

Skip it when

  • You need a standard dropdown button without a text field input interface.
  • You require complex custom form builders beyond simple drop-down inputs.

Strengths

  • Supports both single and multi-selection dropdowns.
  • Includes built-in search capability for single-selection dropdowns.
  • Highly customizable UI properties including radius, icons, and text styles.

Weaknesses

  • Search option is currently available only for single selection dropdowns.
  • Limited to Material Design styling.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2
DropDownTextField(
  clearIcon: Icons.clear,
  dropdownRadius: 12,
  dropDownList: [
    DropDownValueModel(name: 'Name 1', value: "value1"),
    DropDownValueModel(name: 'Name 2', value: "value2"),
  ],
  onChanged: (val) {},
)

Alternatives

Packages that do the same job and could replace dropdown_textfield.

Works with

Packages commonly used together with dropdown_textfield: ones it builds on, ones built on it, and its own family.