BtnSF constructor

const BtnSF({
  1. Key? key,
  2. required String? text,
  3. dynamic onPressed()?,
  4. dynamic onHover(
    1. bool,
    2. dynamic (
      1. bool
      )
    )?,
  5. Color? textColor,
  6. Color? bgColor,
  7. Color? foregroundColor,
  8. Color? borderColor,
  9. bool hasBorder = true,
  10. bool isLoose = false,
  11. bool hasBold = false,
  12. bool isTextOnly = false,
  13. double? radius,
  14. double? textSize,
  15. Widget? preFix,
  16. Widget? postFix,
  17. TextStyle? textStyle,
  18. double? verticalPadding = 4,
  19. double? borderWidth = 1,
  20. ButtonStyle? style,
  21. Color? shadowColor,
  22. Color? onSurface,
  23. double? elevation,
  24. EdgeInsetsGeometry? padding,
  25. Size? minimumSize,
  26. Size? maximumSize,
  27. Size? fixedSize,
  28. BorderSide? side,
  29. OutlinedBorder? shape,
  30. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
  31. double? width,
  32. double? height,
  33. bool makeInverse = false,
  34. Widget? loadingWidget,
  35. Color? loadingColor,
  36. dynamic onPressedCallBack(
    1. dynamic (
      1. bool
      )
    )?,
})

Implementation

const BtnSF(
    {super.key,
    required this.text,
    this.onPressed,
    this.onHover,
    this.textColor,
    this.bgColor,
    this.foregroundColor,
    this.borderColor,
    this.hasBorder = true,
    this.isLoose = false,
    this.hasBold = false,
    this.isTextOnly = false,
    this.radius,
    this.textSize,
    this.preFix,
    this.postFix,
    this.textStyle,
    this.verticalPadding = 4,
    this.borderWidth = 1,
    this.style,
    this.shadowColor,
    this.onSurface,
    this.elevation,
    this.padding,
    this.minimumSize,
    this.maximumSize,
    this.fixedSize,
    this.side,
    this.shape,
    this.mainAxisAlignment = MainAxisAlignment.center,
    this.width,
    this.height,
    this.makeInverse = false,
      this.loadingWidget,
      this.loadingColor,
      this.onPressedCallBack
    });