defineDisabledBackgroundColor method
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;
}