CkButton constructor
const
CkButton({
- required String titleText,
- Key? key,
- VoidCallback? onTap,
- Color? titleColor,
- Color? buttonColor,
- double? titleSize,
- double? buttonRadius,
- MainAxisAlignment alignment = MainAxisAlignment.center,
- FontWeight? titleWeight,
- double? buttonHeight,
- double? borderWidth,
- bool isLoading = false,
- double? buttonWidth,
- Color? borderColor,
- Widget? prefix,
- Widget? suffix,
- double? elevation,
- Gradient? gradient,
- EdgeInsetsGeometry? padding,
- Gradient? titleGradient,
- 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,
});