GetSnackBar constructor

const GetSnackBar({
  1. Key? key,
  2. String? title,
  3. String? message,
  4. Widget? titleText,
  5. Widget? messageText,
  6. Widget? icon,
  7. bool shouldIconPulse = true,
  8. double? maxWidth,
  9. EdgeInsets margin = const EdgeInsets.all(0.0),
  10. EdgeInsets padding = const EdgeInsets.all(16),
  11. double borderRadius = 0.0,
  12. Color? borderColor,
  13. double? borderWidth = 1.0,
  14. Color backgroundColor = const Color(0xFF303030),
  15. Color? leftBarIndicatorColor,
  16. List<BoxShadow>? boxShadows,
  17. Gradient? backgroundGradient,
  18. Widget? mainButton,
  19. OnTap? onTap,
  20. Duration? duration,
  21. bool isDismissible = true,
  22. DismissDirection? dismissDirection,
  23. bool showProgressIndicator = false,
  24. AnimationController? progressIndicatorController,
  25. Color? progressIndicatorBackgroundColor,
  26. Animation<Color>? progressIndicatorValueColor,
  27. SnackPosition snackPosition = SnackPosition.BOTTOM,
  28. SnackStyle snackStyle = SnackStyle.FLOATING,
  29. Curve forwardAnimationCurve = Curves.easeOutCirc,
  30. Curve reverseAnimationCurve = Curves.easeOutCirc,
  31. Duration animationDuration = const Duration(seconds: 1),
  32. double barBlur = 0.0,
  33. double overlayBlur = 0.0,
  34. Color? overlayColor = Colors.transparent,
  35. Form? userInputForm,
  36. SnackbarStatusCallback? snackbarStatus,
})

Implementation

const GetSnackBar({
  Key? key,
  this.title,
  this.message,
  this.titleText,
  this.messageText,
  this.icon,
  this.shouldIconPulse = true,
  this.maxWidth,
  this.margin = const EdgeInsets.all(0.0),
  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.mainButton,
  this.onTap,
  this.duration,
  this.isDismissible = true,
  this.dismissDirection,
  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.snackbarStatus,
}) : super(key: key);