SnackbarConfig constructor

SnackbarConfig({
  1. Widget? titleText,
  2. Widget? messageText,
  3. Widget? icon,
  4. Color textColor = Colors.white,
  5. Color? titleColor,
  6. TextStyle? titleTextStyle,
  7. Color? messageColor,
  8. TextStyle? messageTextStyle,
  9. Color? mainButtonTextColor,
  10. bool closeSnackbarOnMainButtonTapped = false,
  11. ButtonStyle? mainButtonStyle,
  12. bool instantInit = false,
  13. bool shouldIconPulse = true,
  14. double? maxWidth,
  15. EdgeInsets? margin,
  16. EdgeInsets padding = const EdgeInsets.all(16),
  17. double borderRadius = 0.0,
  18. Color? borderColor,
  19. double borderWidth = 1.0,
  20. Color backgroundColor = const Color(0xFF303030),
  21. Color? leftBarIndicatorColor,
  22. List<BoxShadow>? boxShadows,
  23. Gradient? backgroundGradient,
  24. bool isDismissible = true,
  25. DismissDirection dismissDirection = DismissDirection.vertical,
  26. bool showProgressIndicator = false,
  27. AnimationController? progressIndicatorController,
  28. Color? progressIndicatorBackgroundColor,
  29. Animation<Color>? progressIndicatorValueColor,
  30. SnackPosition snackPosition = SnackPosition.BOTTOM,
  31. SnackStyle snackStyle = SnackStyle.FLOATING,
  32. Curve forwardAnimationCurve = Curves.easeOutCirc,
  33. Curve reverseAnimationCurve = Curves.easeOutCirc,
  34. Duration animationDuration = const Duration(seconds: 1),
  35. double barBlur = 0.0,
  36. double overlayBlur = 0.0,
  37. Color overlayColor = Colors.transparent,
  38. Form? userInputForm,
  39. TextAlign titleTextAlign = TextAlign.left,
  40. TextAlign messageTextAlign = TextAlign.left,
  41. Duration duration = const Duration(seconds: 3),
})

Implementation

SnackbarConfig({
  this.titleText,
  this.messageText,
  this.icon,
  this.textColor = Colors.white,
  this.titleColor,
  this.titleTextStyle,
  this.messageColor,
  this.messageTextStyle,
  this.mainButtonTextColor,
  this.closeSnackbarOnMainButtonTapped = false,
  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,
  this.duration = const Duration(seconds: 3),
});