VButton constructor
const
VButton({
- Key? key,
- String text = '',
- String? textColor,
- String? bgColor,
- String? disabledBgColor,
- String? imageBg,
- bool hasBorder = false,
- TextStyle? textStyle,
- BorderRadius? radius,
- Widget? child,
- double? width,
- Color? color,
- Color? highlightColor,
- Color? splashColor,
- Gradient? gradient,
- BoxBorder? border,
- EdgeInsets? padding,
- EdgeInsets margin = EdgeInsets.zero,
- String? textColorStr,
- VButtonType type = VButtonType.primary,
- bool block = false,
- bool round = false,
- bool disabled = false,
- bool loading = false,
- VLoadingType loadingType = VLoadingType.circular,
- Color? loadingColor,
- Widget? icon,
- VIconPosition iconPosition = VIconPosition.left,
- double? height,
- double? fontSize,
- VoidCallback? onPressed,
Implementation
const VButton({
super.key,
this.text = '',
this.textColor,
this.bgColor,
this.disabledBgColor,
this.imageBg,
this.hasBorder = false,
this.textStyle,
this.radius,
this.child,
this.width,
this.color,
this.highlightColor,
this.splashColor,
this.gradient,
this.border,
this.padding,
this.margin = EdgeInsets.zero,
this.textColorStr,
this.type = VButtonType.primary,
this.block = false,
this.round = false,
this.disabled = false,
this.loading = false,
this.loadingType = VLoadingType.circular,
this.loadingColor,
this.icon,
this.iconPosition = VIconPosition.left,
this.height,
this.fontSize,
this.onPressed,
});