VentButton.outlinedChild constructor

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

Implementation

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