getButtonBackgroundColor static method
Color
getButtonBackgroundColor(
- BuildContext context, {
- UpStyle? override,
- UpStyle? style,
- UpColorType? colorType,
Implementation
static Color getButtonBackgroundColor(
BuildContext context, {
UpStyle? override,
UpStyle? style,
UpColorType? colorType,
}) {
return style?.isDisabled == true
? override?.buttonDisbaledBackgroundColor ??
style?.buttonDisbaledBackgroundColor ??
getStyleByType(
(FlutterUpConfig.of(context)?.theme ?? UpConstants.kDefaultTheme),
colorType,
).buttonDisbaledBackgroundColor ??
UpConstants.kDefaultStyleDisabledBackgroundColor
: override?.buttonBackgroundColor ??
style?.buttonBackgroundColor ??
getStyleByType(
(FlutterUpConfig.of(context)?.theme ??
UpConstants.kDefaultTheme),
colorType)
.buttonBackgroundColor ??
Theme.of(context).primaryColor;
}