Form

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.

CLI

To generate a specific style for customization:

dart run forui style create radio

Usage

FRadio(...)

1FRadio(
2 style: const .delta(motion: .delta()),
3 leadingLabel: false,
4 enabled: true,
5 value: false,
6 onChange: (value) {},
7 label: const Text('Option'),
8 description: const Text('Description'),
9 error: null,
10)

Examples

Leading Label

On this page