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

A package that will help you to create multi selection filter dialog in Flutter.

Multi_selection_filter #

A package that will help you to create multi selection filter dialog in Flutter.

Multi_selection_filter package poster

Features #

  • Flutter 3.10 compatible
  • Checkbox list for selection
  • Search functionality within the dialog
  • You can also display Chips for easily remove items from list

How to Use #

# add this line to your dependencies
multi_selection_filter: ^0.0.2
      MultiSelectionFilter(
        title: 'Select Food',
        textListToShow: foodItems.map((foodItem) => foodItem.foodName).toList(),
        selectedList: foodItems.map((foodItem) => foodItem.isSelected).toList(),
        okButtonText: 'Ok',
        accentColor: Colors.blue,
        checkboxTitleBG: Colors.black87,
        checkboxCheckColor: Colors.white,
        checkboxTitleTextColor: Colors.white,
        doneButtonBG: Colors.blue,
        doneButtonTextColor: Colors.white,
        onOkPress: () {
          Navigator.pop(context);
        },
        onCheckboxTap: (name, index, isChecked) {
          setState(() {
            foodItems[index].isSelected = isChecked;
          });
        },
        child: const Icon(
          Icons.filter_list,
          size: 32,
        ),
      ),
19
likes
0
pub points
60%
popularity

Publisher

verified publishersolguruz.com

A package that will help you to create multi selection filter dialog in Flutter.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on multi_selection_filter