RadioButtonThemeData.standard constructor
RadioButtonThemeData.standard(
- FluentThemeData theme
Implementation
factory RadioButtonThemeData.standard(FluentThemeData theme) {
return RadioButtonThemeData(
foregroundColor: ButtonState.resolveWith((states) {
return states.isDisabled ? theme.resources.textFillColorDisabled : null;
}),
checkedDecoration: ButtonState.resolveWith((states) {
return BoxDecoration(
border: Border.all(
color: ButtonThemeData.checkedInputColor(theme, states),
width: !states.isDisabled
? states.isHovering && !states.isPressing
? 3.4
: 5.0
: 4.0,
),
shape: BoxShape.circle,
color: theme.resources.textOnAccentFillColorPrimary,
);
}),
uncheckedDecoration: ButtonState.resolveWith((states) {
return BoxDecoration(
color: ButtonState.forStates(
states,
disabled: theme.resources.controlAltFillColorDisabled,
pressed: theme.resources.controlAltFillColorQuarternary,
hovering: theme.resources.controlAltFillColorTertiary,
none: theme.resources.controlAltFillColorSecondary,
),
border: Border.all(
width: states.isPressing ? 4.5 : 1,
color: ButtonState.forStates(
states,
disabled: theme.resources.textFillColorDisabled,
pressed: theme.accentColor.defaultBrushFor(theme.brightness),
none: theme.resources.textFillColorTertiary,
),
),
shape: BoxShape.circle,
);
}),
);
}