VentButton.gradient constructor

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

Implementation

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