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: MaterialStateProperty.all<Color>(
getButtonBackgroundColor(context, style: style, colorType: colorType),
),
foregroundColor: MaterialStateProperty.all<Color>(
getButtonTextColor(context, style: style, colorType: colorType),
),
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
getRoundedRectangleBorder(context, style: style, colorType: colorType),
),
elevation: MaterialStateProperty.all<double>(16),
);
}