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