Radio

A radio button that typically allows the user to choose only one of a predefined set of options.

We recommend using a select group to create a group of radio buttons instead of using FRadio directly.

Usage

FRadio(...)

FRadio(
  label: const Text('Default'),
  description: const Text('The description of the default option.'),
  error: const Text('Please select the default option.'),
  semanticLabel: 'Default',
  value: true,
  onChanged: (value) {},
  enabled: true,
  autofocus: true,
);