VentButton.gradientChild constructor
const
VentButton.gradientChild({
- Key? key,
- dynamic onTap()?,
- double elevation = 4,
- double? borderRadius,
- required Widget? child,
- double? minimumHeight,
- Color? shadowColor,
- Color? disabledBackgroundColor,
- Color? primaryColor,
- Color? splashColor = Colors.white,
- double? minimumWidth,
- MaterialTapTargetSize tapTargetSize = MaterialTapTargetSize.shrinkWrap,
- EdgeInsets? padding,
- bool? isDisabled,
- bool? isLoadingButton = false,
- 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);