getButtonStyle method

  1. @override
AuthButtonStyle? getButtonStyle()

Returns a material ButtonStyle, this method makes more easy buttons styling.

Implementation

@override
AuthButtonStyle? getButtonStyle() {
  if (style.buttonType == AuthButtonType.icon) {
    return style.merge(
      const AuthButtonStyle(),
    );
  }
  if (style.buttonType == AuthButtonType.secondary) {
    return style.merge(
      const AuthButtonStyle(
        separator: 12.0,
        height: 40.0,
      ),
    );
  }
  return style.merge(
    const AuthButtonStyle(
      separator: 12.0,
      height: 40.0,
    ),
  );
}