DocumentationFormSelect Group

Select Group

A group of items that allow users to make a selection from a set of options.

For touch devices, a select tile group is generally recommended over this.

Usage

FSelectGroup(...)

FSelectGroup<Value>(
  controller: FMultiSelectGroupController(), // or FRadioSelectGroupController()
  label: const Text('Sidebar'),
  description: const Text('Select the items you want to display in the sidebar.'),
  items: [
    FSelectGroupItem.checkbox(
      value: Value.checkbox,
      label: const Text('Checkbox'),
    ),
    // or
    FSelectGroupItem.radio(
      value: Value.radio,
      label: const Text('Radio'),
    ),
  ],
);

Examples

Checkbox Form

Radio Form