WButton constructor

const WButton({
  1. required GestureTapCallback onTap,
  2. Color? buttonColor,
  3. double? width,
  4. double? borderRadius,
  5. double? height,
  6. String text = '',
  7. Color? color,
  8. Color? textColor,
  9. TextStyle? textStyle,
  10. EdgeInsets? margin,
  11. EdgeInsets? padding,
  12. BoxBorder? border,
  13. bool loading = false,
  14. bool disabled = false,
  15. Color disabledColor = Colors.grey,
  16. Key? key,
  17. Widget? child,
})

Implementation

const WButton({
  required this.onTap,
  this.buttonColor,
  this.width,
  this.borderRadius,
  this.height,
  this.text = '',
  this.color,
  this.textColor,
  this.textStyle,
  this.margin,
  this.padding,
  this.border,
  this.loading = false,
  this.disabled = false,
  this.disabledColor = Colors.grey,
  super.key,
  this.child,
});