getButtonStyle static method

ButtonStyle getButtonStyle(
  1. BuildContext context, {
  2. UpStyle? override,
  3. UpStyle? style,
  4. 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),
  );
}