search_then_select_field

Last updated:

0 purchases

search_then_select_field Image
search_then_select_field Images
Add to Cart

Description:

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.