Skip to main content

RadioGroupContext

Type nameSupports Property AnimationsControlled by defaultMay contain associated actionLink
TypeName✗✔️✔️-

The RadioGroupContext widget serves as a centralized handler and owner of the current state of a group of [Radio] widgets (/docs/widgets/flutter/radio)

info

The value stored by the widget can be used as a data source for actions.

More

Usage​

RadioGroupContext(
&duit_attributes.RadioGroupContextAttributes[bool]{
GroupValue: false,
},
"group_id",
&duit_core.RemoteAction{
Event: "/on_change",
DependsOn: []*duit_core.ActionDependency{
{
Id: "group_id",
Target: "group_value",
},
},
},
nil, //or
// Radio[bool, duit_color.ColorString](
// &duit_attributes.RadioAttributes[bool, duit_color.ColorString]{
// Value: false,
// Toggleable: true,
// },
// "",
// false,
// ),
)