VentButton.textOnly constructor
const
VentButton.textOnly({
- 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,
- Color? outlinedColor = Colors.transparent,
- Color? splashColor,
- double? minimumWidth,
- MaterialTapTargetSize tapTargetSize = MaterialTapTargetSize.shrinkWrap,
- EdgeInsets? padding,
- bool? isDisabled,
- bool? isLoadingButton = false,
Implementation
const VentButton.textOnly({
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, // use primary color
this.outlinedColor = Colors.transparent,
this.splashColor, // use secondary color
this.minimumWidth,
this.tapTargetSize = MaterialTapTargetSize.shrinkWrap,
this.padding,
this.isDisabled,
this.isLoadingButton = false,
}) : child = null,
buttonEnum = CustomButtonEnum.TEXTONLY,
useGradient = false,
gradient = null,
gradientColor = null,
super(key: key);