Import
import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;API Reference
The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.
RadioGroup
const RadioGroup({
super.key,
this.size,
required this.options,
required this.value,
required this.onChanged,
this.direction = RadioGroupDirection.vertical,
this.spacing,
this.optionSpacing,
this.radioSize,
this.activeColor,
this.inactiveColor,
this.disabledColor,
this.textColor,
this.descriptionColor,
this.fontSize,
this.descriptionFontSize,
this.indicatorAlignment = RadioIndicatorAlignment.leading,
this.showDividers = false,
this.dividerColor,
this.optionPadding,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
size | ComponentSize? | No | null |
options | List<RadioOption<T>> | Yes | — |
value | T? | Yes | — |
onChanged | ValueChanged<T?>? | Yes | — |
direction | RadioGroupDirection | No | RadioGroupDirection.vertical |
spacing | double? | No | null |
optionSpacing | double? | No | null |
radioSize | double? | No | null |
activeColor | Color? | No | null |
inactiveColor | Color? | No | null |
disabledColor | Color? | No | null |
textColor | Color? | No | null |
descriptionColor | Color? | No | null |
fontSize | double? | No | null |
descriptionFontSize | double? | No | null |
indicatorAlignment | RadioIndicatorAlignment | No | RadioIndicatorAlignment.leading |
showDividers | bool | No | false |
dividerColor | Color? | No | null |
optionPadding | EdgeInsetsGeometry? | No | null |
Application Setup
Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.
Source
lib/src/widgets/forms/radio_group/radio_group.dart
This reference is generated from the RadioGroup declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

