Radio Buttons - FUIInputRadio

The FUIInputRadio widget is the UI Kit’s representation of a radio button.
Widget Class Location
The FUIInputRadio widget classes could be found in:
Widget Theme Location
The FUIInputRadio class is the theme class holds the default theme variables/values.
Accessing the theme
To access the theme class object, do the following:
Usage
The FUIInputRadio widget is recommended to be utilized within a Stateful widget, typically in conjunction with the FUIInputFieldRadioGroupController, which functions as the common value holder for multiple radio buttons of the same group.
Here's an example:
When multiple FUIInputRadio widgets share the same FUIInputFieldRadioGroupController, they collectively form a group. Consequently, when different FUIInputRadio (s) with the same FUIInputFieldRadioGroupController are utilized, the groupValue within the FUIInputFieldRadioGroupController undergoes a change.
Data Type of Value
The FUIInputRadio and the FUIInputFieldRadioGroupController accept a generic type parameter, thereby determining the groupValue type as well.
If a different data type, such as String, is desired, it can be easily achieved as follows:
Using a controller
The FUIInputFieldRadioController facilitates the management of the enable/disable and readonly status of the FUIInputRadio.
For example:
Parameters
Parameters | Description |
|---|---|
FUIColorScheme fuiColorScheme | The color scheme for the |
FUIInputFieldRadioGroupController\<T\>? fuiInputFieldRadioGroupController | The radio button group value controller . |
FUIInputFieldRadioController? fuiInputFieldRadioController | The general purpose controller. |
T value | The value when the radio button is selected (conform to the generic type of the |
FUIInputSize fuiInputSize | Configure the display size of the checkbox. |
Other parameters
The other parameters corresponds to the ones available in Flutter's Radio.