Skip to content
pubscout

drop_down_list

2.1.1, released 11 months ago by mindinventory.com

A customizable dropdown widget supporting single/multiple selection and integrated search.

WASM-ready
$ flutter pub add drop_down_list
Source repository

What it does

Provides a customizable dropdown widget displayed in a bottom sheet. It supports both single and multiple selection, type-safe custom data handling through generics, and integrated search functionality.

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

Use it when

  • You need a bottom sheet dropdown that supports single or multiple selection.
  • You require built-in search capabilities inside your selection list.
  • You want to handle custom data types in a type-safe manner.

Skip it when

  • You need an inline dropdown button instead of a bottom sheet modal.
  • You require complex form field integration with built-in form validation controllers out of the box.

Strengths

  • Supports both single and multiple selection modes
  • Built-in search functionality
  • Type-safe generic support for custom data
  • Highly customizable UI appearance and bottom sheet behavior

Weaknesses

  • Presented exclusively as a bottom sheet modal via `DropDownState`
  • Limited to specific pre-defined UI parameters and callbacks

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
DropDownState<String>(
  dropDown: DropDown<String>(
    data: <SelectedListItem<String>>[
      SelectedListItem<String>(data: 'Tokyo'),
      SelectedListItem<String>(data: 'New York'),
      SelectedListItem<String>(data: 'London'),
    ],
    onSelected: (selectedItems) {
      List<String> list = [];
      for (var item in selectedItems) {
        list.add(item.data);
      }
    },
  ),
).showModal(context);

Alternatives

Packages that do the same job and could replace drop_down_list.