VButton constructor

const VButton({
  1. Key? key,
  2. Widget? child,
  3. double? width,
  4. double height = 50.0,
  5. Color? color,
  6. Color? highlightColor,
  7. Color? splashColor,
  8. Gradient? gradient,
  9. BorderRadius radius = const BorderRadius.all(Radius.circular(6)),
  10. BoxBorder? border,
  11. EdgeInsets padding = const EdgeInsets.only(left: 6, right: 6),
  12. EdgeInsets margin = const EdgeInsets.all(6),
  13. required VoidCallback? onPressed,
  14. bool isPlain = false,
  15. String? textColor,
  16. double fontSize = 13,
  17. 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);