Skip to content
pubscout

checkbox_grouped

2.0.0, released 3 years ago by an unverified publisher

Flutter widgets for grouping checkboxes, chips, and switches with selection controllers.

WASM-ready
$ flutter pub add checkbox_grouped
Source repository

What it does

Provides customizable widgets to group checkboxes, radio buttons, chips, and switches with single or multiple selection support. Includes controllers to programmatically read selections, manage enabled/disabled states, and listen to changes.

AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to present a group of checkboxes, chips, or switches bound to a single selection controller.
  • You want to programmatically select, deselect, enable, or disable items in a group.

Skip it when

  • You need standard FormFormField integration without using the package's custom controllers.
  • You are working with complex objects without implementing operator == and hashCode.

Strengths

  • Supports multiple input styles (checkboxes, chips, switches, custom builders, and dialogs).
  • Provides comprehensive controller methods for selection and state management.

Weaknesses

  • Requires implementing operator == and hashCode when using complex objects as values.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2
SimpleGroupedCheckbox<int>(
        controller: controller,
        itemsTitle: ["1" ,"2","4","5"],
        values: [1,2,4,5],
        groupStyle: GroupStyle(
              activeColor: Colors.red,
              itemTitleStyle: TextStyle(
              fontSize: 13
             )
           ),
        checkFirstElement: false,
)

Alternatives

Packages that do the same job and could replace checkbox_grouped.

Works with

Packages commonly used together with checkbox_grouped: ones it builds on, ones built on it, and its own family.