CardButton constructor
const
CardButton({
- Key? key,
- String? text,
- IconData? icon,
- bool iconOnRight = false,
- CardButtonStyle style = CardButtonStyle.elevated,
- ButtonPosition position = ButtonPosition.left,
- Color? backgroundColor,
- Color? textColor,
- Color? borderColor,
- double borderWidth = 1.5,
- double? fontSize,
- FontWeight? fontWeight,
- EdgeInsetsGeometry? padding,
- double? borderRadius,
- BorderRadiusGeometry? customBorderRadius,
- double? width,
- double? height,
- double iconSize = 20.0,
- double iconTextSpacing = 8.0,
- double elevation = 2.0,
- double pressedElevation = 6.0,
- bool enableHover = true,
- Color? hoverColor,
- bool isLoading = false,
- Color? loadingColor,
- bool isDisabled = false,
- Color? disabledColor,
- VoidCallback? onPressed,
- 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);