SocialButton constructor
const
SocialButton({
- Key? key,
- required SocialProvider provider,
- required VoidCallback? onPressed,
- String? label,
- Color? bgColor,
- Color? textColor,
- Widget? iconWidget,
- double? iconSize,
- double? width,
- double? height,
- double? borderRadius,
- BorderSide? borderSide,
- EdgeInsetsGeometry? padding,
- double? fontSize,
- FontWeight? fontWeight,
- double? elevation,
- bool isLoading = false,
- bool enabled = true,
- SocialButtonStyle style = SocialButtonStyle.filled,
- 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.iconSpacing,
});