getButtonStyle method

ButtonStyle getButtonStyle(
  1. TWidgetTheme baseTheme
)

Implementation

ButtonStyle getButtonStyle(TWidgetTheme baseTheme) {
  return ButtonStyle(
    backgroundColor: baseTheme.backgroundState,
    foregroundColor: baseTheme.foregroundState,
    iconColor: baseTheme.foregroundState,
    side: baseTheme.borderSideState,
    padding: size.paddingState,
    minimumSize: size.minimumSizeState,
    shadowColor: shadowColor,
    overlayColor: WidgetStateProperty.all(Colors.transparent),
    elevation: WidgetStateProperty.all(elevation ?? 0.0),
    shape: WidgetStateProperty.all(shape ?? RoundedRectangleBorder(borderRadius: BorderRadius.circular(borderRadius ?? 6.0))),
    textStyle: textStyle ?? WidgetStateProperty.all(TextStyle(fontSize: size.font, fontWeight: type.fontWeight, letterSpacing: 0.65)),
  );
}