getButtonStyle method

  1. @override
AuthButtonStyle? getButtonStyle()

getButtonStyle() returns style for all button types based on AuthButtonType.

Implementation

@override
AuthButtonStyle? getButtonStyle() {
  if (style!.buttonType == AuthButtonType.icon)
    return style!.merge(
      AuthButtonStyle(
        width: 50.0,
        height: 50.0,
        borderWidth: 1.0,
        borderColor: Color(0xff8c8c8c),
        padding: EdgeInsets.zero,
      ),
    );
  if (style!.buttonType == AuthButtonType.secondary)
    return style!.merge(
      AuthButtonStyle(
        height: 40.0,
        separator: 12.0,
      ),
    );
  return style!.merge(
    AuthButtonStyle(
      height: 40.0,
      separator: 12.0,
      padding: EdgeInsets.symmetric(horizontal: 12.0),
      borderWidth: 1.0,
      borderColor: Color(0xff8c8c8c),
    ),
  );
}