Skip to Content
Forui 0.12.0 is released 🎉

Checkbox

A control that allows the user to toggle between checked and not checked.

For touch devices, a switch is generally recommended over this.

We recommend using a select group to create a group of checkboxes.

CLI

To generate and customize this style:

dart run forui style create checkbox

Usage

FCheckbox(...)

FCheckbox( style: FCheckboxStyle(...), label: const Text('Accept terms and conditions'), description: const Text('You agree to our terms and conditions.'), error: const Text('Please accept the terms and conditions.'), semanticsLabel: 'Accept terms and conditions', value: true, onChange: (value) {}, enabled: true, autofocus: true, );

Examples

Disabled

Error

Without Label

Form

Last updated on