VoToastTheme constructor
const
VoToastTheme({
- double? verticalSpacing,
- double? horizontalSpacing,
- double? leadingSize,
- VoToastStyle defaultStyle = VoToastStyle.snackBar,
- VoToastPosition defaultPosition = VoToastPosition.bottom,
- Duration duration = const Duration(seconds: 20),
- Duration? animationDuration = const Duration(milliseconds: 300),
- Curve appearCurve = Curves.easeOutBack,
- Curve dismissCurve = Curves.easeInBack,
- double? snackBarRadius,
- VoToastAlignment horizontalAlignment = VoToastAlignment.center,
- double? bannerRadius,
- EdgeInsetsGeometry? contentPadding,
- int maxLines = 4,
- Color? backgroundColor,
- Color? borderColor,
- List<
BoxShadow> ? boxShadow, - double? widthFactor,
- double? maxWidth,
- bool genericStyle = true,
- TextStyle? titleStyle,
- TextStyle? messageStyle,
- double snackBarStackOffset = 16,
- double bannerStackOffset = 20,
- double secondStackScale = 0.95,
- double thirdStackScale = 0.90,
- int maxVisible = 3,
- Widget? errorIcon,
- Widget? warningIcon,
- Widget? successIcon,
- Widget? infoIcon,
Implementation
const VoToastTheme({
this.verticalSpacing,
this.horizontalSpacing,
this.leadingSize,
this.defaultStyle = VoToastStyle.snackBar,
this.defaultPosition = VoToastPosition.bottom,
this.duration = const Duration(seconds: 20),
this.animationDuration = const Duration(milliseconds: 300),
this.appearCurve = Curves.easeOutBack,
this.dismissCurve = Curves.easeInBack,
this.snackBarRadius,
this.horizontalAlignment = VoToastAlignment.center,
this.bannerRadius,
this.contentPadding,
this.maxLines = 4,
this.backgroundColor,
this.borderColor,
this.boxShadow,
this.widthFactor,
this.maxWidth,
this.genericStyle = true,
this.titleStyle,
this.messageStyle,
this.snackBarStackOffset = 16,
this.bannerStackOffset = 20,
this.secondStackScale = 0.95,
this.thirdStackScale = 0.90,
this.maxVisible = 3,
this.errorIcon,
this.warningIcon,
this.successIcon,
this.infoIcon,
});