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,
- OnHover? onHover,
- 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,
- HitTestBehavior? hitTestBehavior,
Implementation
const GetSnackBar({
super.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.onHover,
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,
this.hitTestBehavior,
});