VButton constructor
const
VButton({
- Key? key,
- Widget? child,
- double? width,
- double height = 50.0,
- Color? color,
- Color? highlightColor,
- Color? splashColor,
- Gradient? gradient,
- BorderRadius radius = const BorderRadius.all(Radius.circular(6)),
- BoxBorder? border,
- EdgeInsets padding = const EdgeInsets.only(left: 6, right: 6),
- EdgeInsets margin = const EdgeInsets.all(6),
- required VoidCallback? onPressed,
- bool isPlain = false,
- String? textColor,
- double fontSize = 13,
- String text = "",
Implementation
const VButton({
Key? key,
this.child,
this.width,
this.height = 50.0,
this.color,
this.highlightColor,
this.splashColor,
this.gradient,
this.radius = const BorderRadius.all(Radius.circular(6)),
this.border ,
this.padding = const EdgeInsets.only(left: 6, right: 6),
this.margin = const EdgeInsets.all(6),
required this.onPressed,
this.isPlain=false,
this.textColor,
this.fontSize=13,
this.text="",
}) : super(key: key);