VentButton constructor
const
VentButton({
- Key? key,
- dynamic onTap()?,
- double elevation = 0,
- double? borderRadius,
- required String text,
- TextStyle? customTextStyle,
- Color? primaryColor,
- Color? splashColor = Colors.white,
- Color? textColor = Colors.white,
- double? minimumWidth,
- double? minimumHeight,
- EdgeInsets? padding,
- MaterialTapTargetSize tapTargetSize = MaterialTapTargetSize.shrinkWrap,
- Color? shadowColor,
- Color? disabledBackgroundColor,
- bool? isDisabled,
- bool? isLoadingButton = false,
- Color? outlinedColor,
Implementation
const VentButton({
Key? key,
this.onTap,
this.elevation = 0,
this.borderRadius,
required this.text,
this.customTextStyle,
this.primaryColor,
this.splashColor = Colors.white,
this.textColor = Colors.white,
this.minimumWidth,
this.minimumHeight,
this.padding,
this.tapTargetSize = MaterialTapTargetSize.shrinkWrap,
this.shadowColor,
this.disabledBackgroundColor,
this.isDisabled,
this.isLoadingButton = false,
this.outlinedColor,
}) : child = null,
useGradient = false,
buttonEnum = CustomButtonEnum.DEFAULT,
gradient = null,
gradientColor = null,
super(key: key);