grouped_checkbox 0.0.1 copy "grouped_checkbox: ^0.0.1" to clipboard
grouped_checkbox: ^0.0.1 copied to clipboard

outdated

A package to easily group checkboxes in different styles in Flutter projects.

Grouped Checkbox #

pub package

A package to easily group checkboxes in different styles in Flutter projects.

Usage #

To use this plugin, add grouped_checkbox as a dependency in your pubspec.yaml file.

dependencies: grouped_checkbox: 0.0.1

Example #

import 'package:grouped_checkbox/grouped_checkbox.dart';
    List<String> allItemList = [
        'Red',
        'Green',
        'Blue',
        'Yellow',
        'Black',
        'Violet',
      ];
    
    List<String> checkedItemList = ['Green', 'Yellow'];
      
    GroupedCheckbox(
      itemList: allItemList,
      checkedItemList: checkedItemList,
      disabled: ['Black'],
      onChanged: (itemList) {
        setState(() {
           selectedItemList = itemList;
           print('SELECTED ITEM LIST $itemList');
          });
      },
      orientation: CheckboxOrientation.VERTICAL,
      checkColor: Colors.lightGreenAccent,
      activeColor: Colors.red
    );
11
likes
30
pub points
79%
popularity

Publisher

unverified uploader

A package to easily group checkboxes in different styles in Flutter projects.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on grouped_checkbox