GetSnackBar constructor
const
GetSnackBar({
- Key? key,
- String? title,
- String? message,
- Widget? titleText,
- Widget? messageText,
- Widget? icon,
- bool shouldIconPulse = true,
- double? maxWidth,
- EdgeInsets margin = const EdgeInsets.all(0.0),
- 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,
- Widget? mainButton,
- OnTap? onTap,
- Duration? duration,
- bool isDismissible = true,
- DismissDirection? dismissDirection,
- 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,
- 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);