SocialButton constructor

const SocialButton({
  1. Key? key,
  2. required SocialProvider provider,
  3. required VoidCallback? onPressed,
  4. String? label,
  5. Color? bgColor,
  6. Color? textColor,
  7. Widget? iconWidget,
  8. double? iconSize,
  9. double? width,
  10. double? height,
  11. double? borderRadius,
  12. BorderSide? borderSide,
  13. EdgeInsetsGeometry? padding,
  14. double? fontSize,
  15. FontWeight? fontWeight,
  16. double? elevation,
  17. bool isLoading = false,
  18. bool enabled = true,
  19. SocialButtonStyle style = SocialButtonStyle.filled,
  20. SocialIconVariant iconVariant = SocialIconVariant.theme,
  21. double? iconSpacing,
})

Implementation

const SocialButton({
  super.key,
  required this.provider,
  required this.onPressed,
  this.label,
  this.bgColor,
  this.textColor,
  this.iconWidget,
  this.iconSize,
  this.width,
  this.height,
  this.borderRadius,
  this.borderSide,
  this.padding,
  this.fontSize,
  this.fontWeight,
  this.elevation,
  this.isLoading = false,
  this.enabled = true,
  this.style = SocialButtonStyle.filled,
  this.iconVariant = SocialIconVariant.theme,
  this.iconSpacing,
});