Checkbox – Forui (original) (raw)

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

FCheckbox(
  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,
);