Skip to main content

Radio

Type nameSupports Property AnimationsControlled by defaultMay contain associated actionLink
Radio✔️✗✗link
info

The Radio widget (or widget group) only works if that widget is a child widget of the RadioGroupContext

Attributes (outdated models)
final class RadioAttributes extends AnimatedPropertyOwner
implements DuitAttributes<RadioAttributes> {
final dynamic value;
final bool? toggleable, autofocus;
final Color? activeColor, focusColor, hoverColor;
final WidgetStateProperty<Color>? fillColor;
final WidgetStateProperty<Color>? overlayColor;
final double? splashRadius;
final MaterialTapTargetSize? materialTapTargetSize;
final VisualDensity? visualDensity;

RadioAttributes({
required this.value,
required this.toggleable,
required this.autofocus,
required this.activeColor,
required this.focusColor,
required this.hoverColor,
required this.fillColor,
required this.overlayColor,
required this.splashRadius,
required this.materialTapTargetSize,
required this.visualDensity,
required super.parentBuilderId,
required super.affectedProperties,
});

Usage​

Radio[bool, duit_color.ColorString](
&duit_attributes.RadioAttributes[bool, duit_color.ColorString]{
Value: false,
Toggleable: true,
},
"",
false,
)