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 or select menu tile is generally recommended over this.
Preview
CLI
To generate and customize this style:
dart run forui style create select-groupUsage
FSelectGroup(...)
FSelectGroup<Value>(
control: FSelectGroupControl.managed(
initial: {Value.checkbox},
onChange: (all) {},
onSelect: (selection) {},
),
style: (style) => style.copyWith(...),
label: const Text('Sidebar'),
description: const Text('Select the items you want to display in the sidebar.'),
children: [
FSelectGroupItem.checkbox(value: Value.checkbox, label: const Text('Checkbox')),
// or
FSelectGroupItem.radio(value: Value.radio, label: const Text('Radio')),
],
);Examples
Checkbox Form
Preview
Radio Form
Preview
Last updated on