async_searchable_dropdown 0.0.6+1 copy "async_searchable_dropdown: ^0.0.6+1" to clipboard
async_searchable_dropdown: ^0.0.6+1 copied to clipboard

retracted

This Flutter package helps create a dropdown which it's items are fetched upon search.

About #

This Flutter package helps create a dropdown which it's items are fetched upon search.

Features #

  • Has a good degree of customization .
  • Fetch items on the start, and when changing search text.
  • Search debounce is built in.

Demo #

Demo

Getting started #

To use this package, add async_searchable_dropdown as a dependency in your [pubspec.yaml] file. And add this import to your file.

import 'package:async_searchable_dropdown/async_searchable_dropdown.dart';

Usage #

SearchableDropdown<String>(
    inputDecoration: const InputDecoration(
        border: OutlineInputBorder(),
        labelText: 'List of items',
        prefixIcon: Icon(Icons.search),
        ),
    margin: const EdgeInsets.all(15),
    remoteItems: (search){
        /// Your async function call must return list of string [List<String>]
    },
    itemLabelFormatter: (value) =>
        "my custom value formatter for: $value",
    onChanged: (int? value) {
        debugPrint('$value');
    },
)

License #

License

11
likes
0
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

This Flutter package helps create a dropdown which it's items are fetched upon search.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

async, collection, flutter

More

Packages that depend on async_searchable_dropdown