getRadioButtonLabelColor static method

Color getRadioButtonLabelColor(
  1. BuildContext context, {
  2. UpStyle? override,
  3. UpStyle? style,
  4. 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;
}