searchable_paginated_dropdown
1.3.0, released 3 years ago by mdikcinar.dev
Flutter searchable dropdown widget supporting pagination, future requests, and form fields.
What it does
Provides a searchable dropdown widget with built-in support for pre-set items, future requests, and paginated data loading. It also includes form field compatibility for easy validation and saving.
AI-written summary of version 1.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a dropdown widget with an integrated search bar.
- You need to load dropdown items via pagination or future asynchronous requests.
Skip it when
- You only need a standard, non-searchable Material dropdown.
Strengths
- Supports paginated and future-loaded item lists
- Form field integration with validation and saving support
- Includes customizable display options like hints, margins, and decorations
Weaknesses
- Limited to dropdown and form field use cases
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
SearchableDropdown<int>(
hintText: const Text('List of items'),
margin: const EdgeInsets.all(15),
items: List.generate(10, (i) => SearchableDropdownMenuItem(value: i, label: 'item $i', child: Text('item $i'))),
onChanged: (int? value) {
debugPrint('$value');
},
)Alternatives
Packages that do the same job and could replace searchable_paginated_dropdown.
- reactive_dropdown_search
A wrapper around dropdown_search to use with reactive_forms.
54Compare - country_state_picker
Flutter country and state/region picker with searchable dropdowns.
52Compare
Works with
Packages commonly used together with searchable_paginated_dropdown: ones it builds on, ones built on it, and its own family.