Skip to content
pubscout

direct_select_flutter

1.2.0, released 4 weeks ago by lanars.com

A selection widget with a full-screen modal popup for choosing options.

WASM-ready
$ flutter pub add direct_select_flutter
Source repository

What it does

Provides a direct select widget implementation featuring an ethereal, full-screen modal popup that displays available choices when interacted with. It supports custom item builders, item heights, focused item decorations, and options to open on long press for scrollable views.

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 custom dropdown or picker UI inspired by specific Dribbble designs
  • You want a selection widget that displays choices in a full-screen modal popup

Skip it when

  • You prefer standard platform-native dropdown menus
  • You are using a version of Flutter older than 3.10

Strengths

  • Clean visual presentation with modal selection popups
  • Supports customization of item height, focus decorations, and long-press triggers

Weaknesses

  • Limited to specific selection and picker use cases
  • Requires wrapping content in a DirectSelectContainer

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
final dsl = DirectSelectList<String>(
    values: _cities,
    defaultItemIndex: 3,
    itemBuilder: (String value) => getDropDownMenuItem(value),
    focusedItemDecoration: _getDslDecoration(),
    onItemSelectedListener: (item, index, context) {
      ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text(item)));
    });

Alternatives

Packages that do the same job and could replace direct_select_flutter.