BaseSocialButton constructor

const BaseSocialButton({
  1. Key? key,
  2. required VoidCallback? onPressed,
  3. required String text,
  4. required Color bgColor,
  5. required Color fgColor,
  6. required Widget icon,
  7. double? width,
  8. double? height,
  9. double borderRadius = 6,
  10. ButtonSize size = ButtonSize.medium,
  11. bool isLoading = false,
  12. bool disabled = false,
  13. Color? borderColor,
  14. bool outlined = false,
})

Implementation

const BaseSocialButton({
  super.key,
  required this.onPressed,
  required this.text,
  required this.bgColor,
  required this.fgColor,
  required this.icon,
  this.width,
  this.height,
  this.borderRadius = 6,
  this.size = ButtonSize.medium,
  this.isLoading = false,
  this.disabled = false,
  this.borderColor,
  this.outlined = false,
});