SnackbarConfig class

Stores the configuration for the visual appearance of a snackbar

Constructors

SnackbarConfig({Widget? titleText, Widget? messageText, Widget? icon, Color textColor = Colors.white, Color? titleColor, TextStyle? titleTextStyle, Color? messageColor, TextStyle? messageTextStyle, Color? mainButtonTextColor, bool closeSnackbarOnMainButtonTapped = false, ButtonStyle? mainButtonStyle, bool instantInit = false, bool shouldIconPulse = true, double? maxWidth, EdgeInsets? margin, 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, bool isDismissible = true, DismissDirection dismissDirection = DismissDirection.vertical, 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, TextAlign titleTextAlign = TextAlign.left, TextAlign messageTextAlign = TextAlign.left, Duration duration = const Duration(seconds: 3)})

Properties

animationDuration Duration
getter/setter pair
backgroundColor Color
getter/setter pair
backgroundGradient Gradient?
getter/setter pair
barBlur double
getter/setter pair
borderColor Color?
getter/setter pair
borderRadius double
getter/setter pair
borderWidth double
getter/setter pair
boxShadows List<BoxShadow>?
getter/setter pair
closeSnackbarOnMainButtonTapped bool
Auto close the snackbar when main button tapped
getter/setter pair
dismissDirection DismissDirection
getter/setter pair
duration Duration
Sets the duration of snack bar to be visible
getter/setter pair
forwardAnimationCurve Curve
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
icon Widget?
getter/setter pair
instantInit bool
with instantInit = false you can put Get.snackbar on initState
getter/setter pair
isDismissible bool
getter/setter pair
leftBarIndicatorColor Color?
getter/setter pair
mainButtonStyle ButtonStyle?
getter/setter pair
mainButtonTextColor Color?
Sets the color of the main button text regardless of textColor
getter/setter pair
margin EdgeInsets?
getter/setter pair
maxWidth double?
getter/setter pair
messageColor Color?
Sets the color of the message text regardless of textColor
getter/setter pair
messageText Widget?
getter/setter pair
messageTextAlign TextAlign
getter/setter pair
messageTextStyle TextStyle?
Sets a custom style for the message shown in showCustomSnackbar.
getter/setter pair
overlayBlur double
getter/setter pair
overlayColor Color
getter/setter pair
padding EdgeInsets
getter/setter pair
progressIndicatorBackgroundColor Color?
getter/setter pair
progressIndicatorController AnimationController?
getter/setter pair
progressIndicatorValueColor Animation<Color>?
getter/setter pair
reverseAnimationCurve Curve
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldIconPulse bool
getter/setter pair
showProgressIndicator bool
getter/setter pair
snackPosition SnackPosition
getter/setter pair
snackStyle SnackStyle
getter/setter pair
textColor Color
Sets the color of all the test
getter/setter pair
titleColor Color?
Sets the color of the title text regardless of textColor
getter/setter pair
titleText Widget?
getter/setter pair
titleTextAlign TextAlign
getter/setter pair
titleTextStyle TextStyle?
Defines a custom style for the title shown in showCustomSnackbar.
getter/setter pair
userInputForm Form?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited