VTextButton constructor
const
VTextButton({
- Key? key,
- double height = 51,
- String text = '',
- double width = double.infinity,
- String? textColor,
- double fontSize = 16,
- String? disabledBgColor,
- String? bgColor = "#cd0000",
- String? imageBg,
- VoidCallback? onPressed,
- bool hasBorder = false,
- TextStyle? textStyle,
- BorderRadius? radius = const BorderRadius.all(Radius.circular(6)),
- Gradient? gradient,
Implementation
const VTextButton({
Key? key,
this.height = 51,
this.text = '',
this.width = double.infinity,
this.textColor,
this.fontSize = 16,
this.disabledBgColor,
this.bgColor = "#cd0000",
this.imageBg,
this.onPressed, // 传空为disabled状态
this.hasBorder = false,
this.textStyle,
this.radius = const BorderRadius.all(Radius.circular(6)),
this.gradient
}) : super(key: key);