Checkbox
A control that allows the user to toggle between checked and not checked. It can also be used in a form.
For touch devices, a switch is generally recommended over a checkbox.
Usage
FCheckbox(...)
FCheckbox(
label: const Text('Accept terms and conditions'),
description: const Text('You agree to our terms and conditions.'),
semanticLabel: 'Accept terms and conditions',
enabled: true,
initialValue: true,
autofocus: true,
onChanged: (value) {},
);
Examples
Disabled
Force Error
Force an error state without using the validator
function.