0 purchases
flutter multi chip select
flutter_multi_chip_select #
A simple and versatile multiple chip select component for App developers, with different style.🚀
Getting Started #
dependencies:
flutter_multi_chip_select: ^0.1.0
copied to clipboard
Usage example #
Bottom Popup with no filters #
final multiSelectKey = GlobalKey<MultiSelectDropdownState>();
var menuItems = [1, 2, 3, 4, 5, 6];
FlutterMultiChipSelect(
key: multiSelectKey,
elements: List.generate(
menuItems.length,
(index) => MultiSelectItem<String>.simple(
actions: [
IconButton(
icon: Icon(Icons.delete),
onPressed: () {
setState(() {
menuItems.remove(menuItems[index]);
});
print("Delete Call at: " + menuItems[index].toString());
},
)
],
title: "Item " + menuItems[index].toString(),
value: menuItems[index].toString()),
),
label: "Dropdown Select",
values: [
1, 2 // Pass Initial value array or leave empty array.
],
)
copied to clipboard
Contribute #
Any contribution is deeply appreciated.
License #
Distributed under the MIT license. See LICENSE for more information.
About #
Abhinav Jha - Initial work - Portfolio
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.