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.
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.
- duration_picker
A time picker widget for selecting hours and minutes as durations.
86Compare - vph_web_date_picker
Flutter date picker package designed for web applications.
58Compare - luthor
A Dart validation library inspired by Zod with optional code generation support.
77Compare - datepicker_dropdown
A customizable dropdown date picker widget for Flutter with localization and form validation.
64Compare