SocialAuthButton constructor
const
SocialAuthButton({
- Key? key,
- required SocialAuthProvider provider,
- required VoidCallback onTap,
- bool outlinedLogo = StandardSocialAuthStyle.outlinedLogo,
- double width = StandardSocialAuthStyle.iconWidth,
- double height = StandardSocialAuthStyle.iconHeight,
- EdgeInsets outlinedLogoPadding = StandardSocialAuthStyle.outlinedLogoPadding,
- EdgeInsets solidLogoPadding = EdgeInsets.zero,
- Color? backgroundColor,
- Color? logoBackgroundColor,
- BorderRadius? borderRadius,
- BorderSide? borderSide,
- bool? showBorder,
- bool showShadow = StandardSocialAuthStyle.showShadow,
- BoxShadow? boxShadow,
- EdgeInsets? contentPadding,
- String? label,
- bool expand = false,
- bool enabled = true,
- TextStyle? labelStyle,
- double? labelSpacing,
Creates a SocialAuthButton.
provider and onTap are required.
Implementation
const SocialAuthButton({
super.key,
required this.provider,
required this.onTap,
this.outlinedLogo = StandardSocialAuthStyle.outlinedLogo,
this.width = StandardSocialAuthStyle.iconWidth,
this.height = StandardSocialAuthStyle.iconHeight,
this.outlinedLogoPadding = StandardSocialAuthStyle.outlinedLogoPadding,
this.solidLogoPadding = EdgeInsets.zero,
this.backgroundColor,
this.logoBackgroundColor,
this.borderRadius,
this.borderSide,
this.showBorder,
this.showShadow = StandardSocialAuthStyle.showShadow,
this.boxShadow,
this.contentPadding,
this.label,
this.expand = false,
this.enabled = true,
this.labelStyle,
this.labelSpacing,
});