defineDisabledBackgroundColor method

  1. @override
Color defineDisabledBackgroundColor(
  1. BuildContext context
)
override

Implementation

@override
Color defineDisabledBackgroundColor(BuildContext context) {
  final theme = Provider.of<ThemeRepository>(context).theme;

  if (outlined) {
    return Colors.transparent;
  }
  if (danger) {
    return style?.dangerDisabledBackgroundColor ??
        theme.primaryButtonTheme?.style?.dangerDisabledBackgroundColor ??
        SeniorColors.manchesterColorRed300;
  }
  return style?.disabledBackgroundColor ??
      theme.primaryButtonTheme?.style?.disabledBackgroundColor ??
      SeniorColors.primaryColor100;
}