textfield_search
0.12.3, released 2 months ago by nubeer.io
TextField widget to search and select values from a static list or future.
What it does
Provides a TextField widget that allows users to search and select values from either a local list or an asynchronous Future list. It supports custom item labels, object selection, and callback functions for retrieved values.
AI-written summary of version 0.12.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a text field with autocomplete or search-and-select capabilities.
- You want to populate search results from a static list or an asynchronous Future.
Skip it when
- You need complex form validation frameworks or form builders.
- You require advanced dropdown menu features handled by official Material Menu widgets.
Strengths
- Supports both static lists and Future-based asynchronous lists.
- Allows selecting full objects with a custom label property via getSelectedValue.
- Lightweight and fully tested.
Weaknesses
- Issues must be reported via email rather than a standard platform tracker based on the provided text.
- Limited to string labels or objects with a label property.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
const label = "Some Label";
const dummyList = ['Item 1', 'Item 2', 'Item 3', 'Item 4', 'Item 5'];
TextEditingController myController = TextEditingController();
MaterialApp(
home: Scaffold(
body: TextFieldSearch(initialList: dummyList, label: label, controller: myController)
),
)Alternatives
Packages that do the same job and could replace textfield_search.
- country_code_picker
A Flutter widget for showing a country code selector with search and favorites support.
69Compare - date_field
A form field widget for picking dates and times with adaptive Material and Cupertino dialogs
75Compare - ms_single_multi_select_dropdown
Customizable Flutter widget for single and multi-select dropdowns with search.
59Compare - dropdown_textfield
A Material Design text field with single and multi-selection searchable dropdown options.
50Compare
Works with
Packages commonly used together with textfield_search: ones it builds on, ones built on it, and its own family.