SocialAuthButton constructor
SocialAuthButton({
- Key? key,
- required SocialAuthProvider provider,
- required VoidCallback onTap,
- bool outlinedLogo = false,
- double width = 50,
- double height = 50,
- EdgeInsets outlinedLogoPadding = const EdgeInsets.all(10.0),
- EdgeInsets solidLogoPadding = const EdgeInsets.all(0.0),
- Color outlinedLogoBgColor = IntelligentsiaColors.white,
- Color solidLogoBgColor = IntelligentsiaColors.transparent,
- BorderRadius borderRadius = const BorderRadius.all(Radius.circular(50)),
- String? label,
- bool expand = false,
- bool enabled = true,
- TextStyle? labelStyle,
- double labelSpacing = 8,
- BoxShadow? boxShadow,
Implementation
SocialAuthButton({
super.key,
required this.provider,
required this.onTap,
this.outlinedLogo = false,
this.width = 50,
this.height = 50,
this.outlinedLogoPadding = const EdgeInsets.all(10.0),
this.solidLogoPadding = const EdgeInsets.all(0.0),
this.outlinedLogoBgColor = IntelligentsiaColors.white,
this.solidLogoBgColor = IntelligentsiaColors.transparent,
this.borderRadius = const BorderRadius.all(Radius.circular(50)),
this.label,
this.expand = false,
this.enabled = true,
this.labelStyle,
this.labelSpacing = 8,
BoxShadow? boxShadow,
}) : boxShadow = boxShadow ??
BoxShadow(
color: IntelligentsiaColors.shadowColor,
spreadRadius: 1.5,
blurRadius: 5,
offset: const Offset(0, 0),
);