Last updated:
0 purchases
search then select field
A field to search for items and select one of them
Inspired by Autocomplete and Typeahead.
Features #
Keyboard support
Loading builder, when search process is running
Error builder, when search process failed
Empty builder, when search result is empty
Getting started #
add package to your pubspec.yml:
search_then_select_field: <latest>
copied to clipboard
Usage #
SearchThenSelectField<Item>(
search: (query) async {
final result = await searchItems(query);
return [
for (final item in result)
Item.fromJson(item),
];
},
itemBuilder: (context, item) => ListTile(
title: Text(item.name),
subtitle: Text(item.code),
),
)
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.