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. ButtonStyle? mainButtonStyle,
  11. bool instantInit = false,
  12. bool shouldIconPulse = true,
  13. double? maxWidth,
  14. EdgeInsets? margin,
  15. EdgeInsets padding = const EdgeInsets.all(16),
  16. double borderRadius = 0.0,
  17. Color? borderColor,
  18. double borderWidth = 1.0,
  19. Color backgroundColor = const Color(0xFF303030),
  20. Color? leftBarIndicatorColor,
  21. List<BoxShadow>? boxShadows,
  22. Gradient? backgroundGradient,
  23. bool isDismissible = true,
  24. DismissDirection dismissDirection = DismissDirection.vertical,
  25. bool showProgressIndicator = false,
  26. AnimationController? progressIndicatorController,
  27. Color? progressIndicatorBackgroundColor,
  28. Animation<Color>? progressIndicatorValueColor,
  29. SnackPosition snackPosition = SnackPosition.BOTTOM,
  30. SnackStyle snackStyle = SnackStyle.FLOATING,
  31. Curve forwardAnimationCurve = Curves.easeOutCirc,
  32. Curve reverseAnimationCurve = Curves.easeOutCirc,
  33. Duration animationDuration = const Duration(seconds: 1),
  34. double barBlur = 0.0,
  35. double overlayBlur = 0.0,
  36. Color overlayColor = Colors.transparent,
  37. Form? userInputForm,
  38. TextAlign titleTextAlign = TextAlign.left,
  39. 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,
});