SocialAuthButton constructor

SocialAuthButton({
  1. Key? key,
  2. required SocialAuthProvider provider,
  3. required VoidCallback onTap,
  4. double width = 50,
  5. double height = 50,
  6. EdgeInsets outlinedLogoPadding = const EdgeInsets.all(10.0),
  7. EdgeInsets solidLogoPadding = const EdgeInsets.all(0.0),
  8. Color outlinedLogoBgColor = IntelligentsiaColors.white,
  9. Color solidLogoBgColor = IntelligentsiaColors.transparent,
  10. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(50)),
  11. 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)),
  BoxShadow? boxShadow,
}) : boxShadow = boxShadow ??
          BoxShadow(
            color: IntelligentsiaColors.shadowColor,
            spreadRadius: 1.5,
            blurRadius: 5,
            offset: const Offset(0, 0),
          );