getButtonStyle static method
ButtonStyle
getButtonStyle(
- BuildContext context, {
- UpStyle? override,
- UpStyle? style,
- UpColorType? colorType,
Implementation
static ButtonStyle getButtonStyle(
BuildContext context, {
UpStyle? override,
UpStyle? style,
UpColorType? colorType,
}) {
return ButtonStyle(
backgroundColor: WidgetStateProperty.all<Color>(
getButtonBackgroundColor(context, style: style, colorType: colorType),
),
foregroundColor: WidgetStateProperty.all<Color>(
getButtonTextColor(context, style: style, colorType: colorType),
),
shape: WidgetStateProperty.all<RoundedRectangleBorder>(
getRoundedRectangleBorder(context, style: style, colorType: colorType),
),
elevation: WidgetStateProperty.all<double>(16),
);
}