SocialAuthButton constructor

const SocialAuthButton({
  1. Key? key,
  2. required SocialAuthProvider provider,
  3. required VoidCallback onTap,
  4. double width = StandardSocialAuthStyle.iconWidth,
  5. double height = StandardSocialAuthStyle.iconHeight,
  6. EdgeInsets outlinedLogoPadding = StandardSocialAuthStyle.outlinedLogoPadding,
  7. EdgeInsets solidLogoPadding = EdgeInsets.zero,
  8. Color? backgroundColor,
  9. Color? logoBackgroundColor,
  10. BorderRadius? borderRadius,
  11. BorderSide? borderSide,
  12. bool? showBorder,
  13. bool showShadow = StandardSocialAuthStyle.showShadow,
  14. BoxShadow? boxShadow,
  15. EdgeInsets? contentPadding,
  16. String? label,
  17. bool expand = false,
  18. bool enabled = true,
  19. TextStyle? labelStyle,
  20. 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,
});