Skip to content
pubscout

direct_select

2.0.0, released 6 years ago by diegoveloper.com

A widget that lets users scroll and select items directly from a dropdown.

WASM-ready
$ flutter pub add direct_select
Source repository

What it does

Provides a dropdown that opens a scrollable list where the user can drag or tap to pick a value. It supports null‑safety and works on all Flutter platforms.

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

Use it when

  • You need a lightweight custom dropdown with direct scroll selection
  • You want a simple widget without extra dependencies

Skip it when

  • You require advanced dropdown features like search, multi‑select, or extensive styling
  • You need a fully accessible or highly customizable picker

Strengths

  • Null‑safety support
  • Works on Android, iOS, web, desktop
  • No external dependencies

Weaknesses

  • Limited styling options
  • No built‑in search or multi‑select
  • May not be actively maintained

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:flutter/material.dart';
import 'package:direct_select/direct_select.dart';

DirectSelect(
  itemExtent: 35.0,
  selectedIndex: 0,
  child: Text('Select item'),
  onSelectedItemChanged: (index) {},
  items: [
    Text('Item 1'),
    Text('Item 2'),
    Text('Item 3'),
  ],
);

Alternatives

Packages that do the same job and could replace direct_select.