VentButton.gradientChild constructor

const VentButton.gradientChild({
  1. Key? key,
  2. dynamic onTap()?,
  3. double elevation = 4,
  4. double? borderRadius,
  5. required Widget? child,
  6. double? minimumHeight,
  7. Color? shadowColor,
  8. Color? disabledBackgroundColor,
  9. Color? primaryColor,
  10. Color? splashColor = Colors.white,
  11. double? minimumWidth,
  12. MaterialTapTargetSize tapTargetSize = MaterialTapTargetSize.shrinkWrap,
  13. EdgeInsets? padding,
  14. bool? isDisabled,
  15. bool? isLoadingButton = false,
  16. required List<Color>? gradientColor,
})

Implementation

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