SnackbarConfig constructor
SnackbarConfig({
- Widget? titleText,
- Widget? messageText,
- Widget? icon,
- Color textColor = Colors.white,
- Color? titleColor,
- TextStyle? titleTextStyle,
- Color? messageColor,
- TextStyle? messageTextStyle,
- Color? mainButtonTextColor,
- ButtonStyle? mainButtonStyle,
- bool instantInit = false,
- bool shouldIconPulse = true,
- double? maxWidth,
- EdgeInsets? margin,
- EdgeInsets padding = const EdgeInsets.all(16),
- double borderRadius = 0.0,
- Color? borderColor,
- double borderWidth = 1.0,
- Color backgroundColor = const Color(0xFF303030),
- Color? leftBarIndicatorColor,
- List<
BoxShadow> ? boxShadows, - Gradient? backgroundGradient,
- bool isDismissible = true,
- DismissDirection dismissDirection = DismissDirection.vertical,
- bool showProgressIndicator = false,
- AnimationController? progressIndicatorController,
- Color? progressIndicatorBackgroundColor,
- Animation<
Color> ? progressIndicatorValueColor, - SnackPosition snackPosition = SnackPosition.BOTTOM,
- SnackStyle snackStyle = SnackStyle.FLOATING,
- Curve forwardAnimationCurve = Curves.easeOutCirc,
- Curve reverseAnimationCurve = Curves.easeOutCirc,
- Duration animationDuration = const Duration(seconds: 1),
- double barBlur = 0.0,
- double overlayBlur = 0.0,
- Color overlayColor = Colors.transparent,
- Form? userInputForm,
- TextAlign titleTextAlign = TextAlign.left,
- TextAlign messageTextAlign = TextAlign.left,
Implementation
SnackbarConfig({
this.titleText,
this.messageText,
this.icon,
this.textColor = Colors.white,
this.titleColor,
this.titleTextStyle,
this.messageColor,
this.messageTextStyle,
this.mainButtonTextColor,
this.mainButtonStyle,
this.instantInit = false,
this.shouldIconPulse = true,
this.maxWidth,
this.margin,
this.padding = const EdgeInsets.all(16),
this.borderRadius = 0.0,
this.borderColor,
this.borderWidth = 1.0,
this.backgroundColor = const Color(0xFF303030),
this.leftBarIndicatorColor,
this.boxShadows,
this.backgroundGradient,
this.isDismissible = true,
this.dismissDirection = DismissDirection.vertical,
this.showProgressIndicator = false,
this.progressIndicatorController,
this.progressIndicatorBackgroundColor,
this.progressIndicatorValueColor,
this.snackPosition = SnackPosition.BOTTOM,
this.snackStyle = SnackStyle.FLOATING,
this.forwardAnimationCurve = Curves.easeOutCirc,
this.reverseAnimationCurve = Curves.easeOutCirc,
this.animationDuration = const Duration(seconds: 1),
this.barBlur = 0.0,
this.overlayBlur = 0.0,
this.overlayColor = Colors.transparent,
this.userInputForm,
this.titleTextAlign = TextAlign.left,
this.messageTextAlign = TextAlign.left,
});