CardButton constructor

const CardButton({
  1. Key? key,
  2. String? text,
  3. IconData? icon,
  4. bool iconOnRight = false,
  5. CardButtonStyle style = CardButtonStyle.elevated,
  6. ButtonPosition position = ButtonPosition.left,
  7. Color? backgroundColor,
  8. Color? textColor,
  9. Color? borderColor,
  10. double borderWidth = 1.5,
  11. double? fontSize,
  12. FontWeight? fontWeight,
  13. EdgeInsetsGeometry? padding,
  14. double? borderRadius,
  15. BorderRadiusGeometry? customBorderRadius,
  16. double? width,
  17. double? height,
  18. double iconSize = 20.0,
  19. double iconTextSpacing = 8.0,
  20. double elevation = 2.0,
  21. double pressedElevation = 6.0,
  22. bool enableHover = true,
  23. Color? hoverColor,
  24. bool isLoading = false,
  25. Color? loadingColor,
  26. bool isDisabled = false,
  27. Color? disabledColor,
  28. VoidCallback? onPressed,
  29. VoidCallback? onLongPress,
})

Implementation

const CardButton({
  Key? key,
  this.text,
  this.icon,
  this.iconOnRight = false,
  this.style = CardButtonStyle.elevated,
  this.position = ButtonPosition.left,
  this.backgroundColor,
  this.textColor,
  this.borderColor,
  this.borderWidth = 1.5,
  this.fontSize,
  this.fontWeight,
  this.padding,
  this.borderRadius,
  this.customBorderRadius,
  this.width,
  this.height,
  this.iconSize = 20.0,
  this.iconTextSpacing = 8.0,
  this.elevation = 2.0,
  this.pressedElevation = 6.0,
  this.enableHover = true,
  this.hoverColor,
  this.isLoading = false,
  this.loadingColor,
  this.isDisabled = false,
  this.disabledColor,
  this.onPressed,
  this.onLongPress,
}) : super(key: key);