Skip to content
pubscout

custom_radio_grouped_button

2.3.0, released 12 months ago by ketanchoyal.dev

Custom Flutter widgets for cleaner and easier grouped radio buttons and checkboxes

WASM-ready
$ flutter pub add custom_radio_grouped_button
Source repository

What it does

Provides custom widgets like CustomRadioButton and CustomCheckBoxGroup that simplify creating grouped radio buttons and checkboxes with styling and state management options. It allows vertical and horizontal orientations, custom spacing, text styles, and programmatic selection/unselection.

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

Use it when

  • You need styled radio button groups or checkbox groups in your forms
  • You want to manage grouped selection states easily using custom labels and values

Skip it when

  • You require complex FormBuilder validation integrations that use other form packages
  • You only need standard platform-native single checkboxes or radio buttons without grouping

Strengths

  • Simplifies creation of grouped radio buttons and checkboxes
  • Supports programmatic selection and unselection using GlobalKeys
  • Offers layout flexibility including wrap and scrollable options

Weaknesses

  • Limited to specific pre-built grouped button configurations
  • Relies on GlobalKeys for programmatic state updates rather than direct controller parameters

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
CustomRadioButton(
  elevation: 0,
  absoluteZeroSpacing: true,
  buttonLables: ['Student', 'Parent', 'Teacher'],
  buttonValues: ["STUDENT", "PARENT", "TEACHER"],
  radioButtonValue: (value) {
    print(value);
  },
)

Alternatives

Packages that do the same job and could replace custom_radio_grouped_button.