list_picker_dialog_plus 0.0.2 copy "list_picker_dialog_plus: ^0.0.2" to clipboard
list_picker_dialog_plus: ^0.0.2 copied to clipboard

List Dialog Picker with search and keyboard navigation.

list_picker_dialog_plus #

List Dialog Picker with search and keyboard navigation.

Getting Started #

Install #

pubspec.yaml
list_picker_dialog_plus: <version_number>

Simple Text List Picker #

var item = await showTextListPicker(
    context: context,
    selectedItem: _selectedItem,
    findFn: (str) async => [
    "Apple",
    "Bannana",
    "Grapes",
    "Orrange",
    "Pineapple",
    ],
);
if (item != null) {
    setState(() {
    _selectedItem = item;
    });
}

Advance Option List Picker #

  var item = await showListPicker(
    context: context,
    selectedItem: _selectedItem,
    findFn: (str) async => [
            "Apple",
            "Bannana",
            "Grapes",
            "Orrange",
            "Pineapple",
        ],
    filterFn: (dynamic item, str) =>
        item.toLowerCase().indexOf(str.toLowerCase()) >= 0,
    listItemFn: (item, position, focused, selected, onTap) =>
        ListTile(
            title: Text(
            item,
            style: TextStyle(
                color: selected ? Colors.blue : Colors.black87),
            ),
            tileColor: focused
                ? Color.fromARGB(10, 0, 0, 0)
                : Colors.transparent,
            onTap: onTap,
        ));
if (item != null) {
    setState(() {
    _selectedItem = item;
    });
}
4
likes
140
points
62
downloads

Publisher

verified publishercrawlink.com

Weekly Downloads

List Dialog Picker with search and keyboard navigation.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on list_picker_dialog_plus