VentButton.child constructor
const
VentButton.child({
- 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,
Implementation
const VentButton.child({
Key? key,
this.onTap,
this.elevation = 4,
this.borderRadius,
required this.child,
this.minimumHeight,
this.shadowColor,
this.disabledBackgroundColor,
this.primaryColor, // use primary color
this.splashColor = Colors.white,
this.minimumWidth,
this.tapTargetSize = MaterialTapTargetSize.shrinkWrap,
this.padding,
this.isDisabled,
this.isLoadingButton = false,
}) : text = '',
buttonEnum = CustomButtonEnum.CHILD,
textColor = null,
customTextStyle = null,
outlinedColor = null,
useGradient = false,
gradient = null,
gradientColor = null,
super(key: key);