getRadioButtonLabelColor static method
Color
getRadioButtonLabelColor(
- BuildContext context, {
- UpStyle? override,
- UpStyle? style,
- UpColorType? colorType,
Implementation
static Color getRadioButtonLabelColor(
BuildContext context, {
UpStyle? override,
UpStyle? style,
UpColorType? colorType,
}) {
return style?.isDisabled == true
? override?.radioButtonDisabledLabelColor ??
style?.radioButtonDisabledLabelColor ??
getStyleByType(
(FlutterUpConfig.of(context)?.theme ?? UpConstants.kDefaultTheme),
colorType,
).radioButtonDisabledLabelColor ??
UpConstants.kDefaultStyleDisabledForegroundColor
: override?.buttonTextColor ??
style?.buttonTextColor ??
getStyleByType(
(FlutterUpConfig.of(context)?.theme ?? UpConstants.kDefaultTheme),
colorType,
).buttonTextColor ??
Theme.of(context).colorScheme.secondary;
}