VentButton constructor

const VentButton({
  1. Key? key,
  2. dynamic onTap()?,
  3. double elevation = 0,
  4. double? borderRadius,
  5. required String text,
  6. TextStyle? customTextStyle,
  7. Color? primaryColor,
  8. Color? splashColor = Colors.white,
  9. Color? textColor = Colors.white,
  10. double? minimumWidth,
  11. double? minimumHeight,
  12. EdgeInsets? padding,
  13. MaterialTapTargetSize tapTargetSize = MaterialTapTargetSize.shrinkWrap,
  14. Color? shadowColor,
  15. Color? disabledBackgroundColor,
  16. bool? isDisabled,
  17. bool? isLoadingButton = false,
  18. Color? outlinedColor,
})

Implementation

const VentButton({
  Key? key,
  this.onTap,
  this.elevation = 0,
  this.borderRadius,
  required this.text,
  this.customTextStyle,
  this.primaryColor,
  this.splashColor = Colors.white,
  this.textColor = Colors.white,
  this.minimumWidth,
  this.minimumHeight,
  this.padding,
  this.tapTargetSize = MaterialTapTargetSize.shrinkWrap,
  this.shadowColor,
  this.disabledBackgroundColor,
  this.isDisabled,
  this.isLoadingButton = false,
  this.outlinedColor,
})  : child = null,
      useGradient = false,
      buttonEnum = CustomButtonEnum.DEFAULT,
      gradient = null,
      gradientColor = null,
      super(key: key);