grouped_checkbox 1.0.0

Flutter Android iOS web

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: 1.0.0

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.blue,
      activeColor: Colors.red
    );
6
likes
100
pub points
84%
popularity

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

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

ferdoushnadia@gmail.com

License

BSD (LICENSE)

Dependencies

flutter

More

Packages that depend on grouped_checkbox