CkButton constructor

const CkButton({
  1. required String titleText,
  2. Key? key,
  3. VoidCallback? onTap,
  4. Color? titleColor,
  5. Color? buttonColor,
  6. double? titleSize,
  7. double? buttonRadius,
  8. MainAxisAlignment alignment = MainAxisAlignment.center,
  9. FontWeight? titleWeight,
  10. double? buttonHeight,
  11. double? borderWidth,
  12. bool isLoading = false,
  13. double? buttonWidth,
  14. Color? borderColor,
  15. Widget? prefix,
  16. Widget? suffix,
  17. double? elevation,
  18. Gradient? gradient,
  19. EdgeInsetsGeometry? padding,
  20. Gradient? titleGradient,
  21. double titleSpacing = 10,
})

Implementation

const CkButton({
  required this.titleText,
  super.key,
  this.onTap,
  this.titleColor,
  this.buttonColor,
  this.titleSize,
  this.buttonRadius,
  this.alignment = MainAxisAlignment.center,
  this.titleWeight,
  this.buttonHeight,
  this.borderWidth,
  this.isLoading = false,
  this.buttonWidth,
  this.borderColor,
  this.prefix,
  this.suffix,
  this.elevation,
  this.gradient,
  this.padding,
  this.titleGradient,
  this.titleSpacing = 10,
});