Radio Button

An input for selection control that often appears when users are asked to make a decision, or select from the options presented to them.

Component checklist

Flutter

Is new design vision part implemented using new tokens?

Up to date

Resources

Examples

Forms/Radio


                                                        
                                                        
                                                            OptimusRadio<String>(
                                                                              isEnabled: true,
                                                                              label: Text('Label'),
                                                                              size: OptimusRadioSize.large,
                                                                              value: value,
                                                                              groupValue: _groupValue,
                                                                              onChanged: _handleChanged,
                                                                              error: widget.error,
                                                                            );
                                                                      
                                                        
                                                            

OptimusRadio Example

API

Name

Description

Type

Default

label

 

Widget

 

value

 

T

 

groupValue

 

T

 

onChanged

 

ValueChanged<T>

 

size

 

OptimusRadioSize

OptimusRadioSize.large

error

 

String?

 

isEnabled

 

bool

true