AwesomeMessage<T extends Object> constructor
AwesomeMessage<T extends Object> ({
- 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,
- TextButton? mainButton,
- OnTap? onTap,
- Duration? duration,
- bool isDismissible = true,
- AwesomeMessageDismissDirection dismissDirection = AwesomeMessageDismissDirection.VERTICAL,
- bool showProgressIndicator = false,
- AnimationController? progressIndicatorController,
- Color? progressIndicatorBackgroundColor,
- Animation<
Color> ? progressIndicatorValueColor, - AwesomeMessagePosition awesomeMessagePosition = AwesomeMessagePosition.BOTTOM,
- AwesomeMessageStyle awesomeMessageStyle = AwesomeMessageStyle.FLOATING,
- Curve forwardAnimationCurve = Curves.easeOutCirc,
- Curve reverseAnimationCurve = Curves.easeOutCirc,
- Duration animationDuration = const Duration(seconds: 1),
- AwesomeMessageStatusCallback? onStatusChanged,
- double barBlur = 0.0,
- double overlayBlur = 0.0,
- Color overlayColor = Colors.transparent,
- Form? userInputForm,
Implementation
AwesomeMessage(
{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,
TextButton? mainButton,
OnTap? onTap,
Duration? duration,
bool isDismissible = true,
AwesomeMessageDismissDirection dismissDirection = AwesomeMessageDismissDirection.VERTICAL,
bool showProgressIndicator = false,
AnimationController? progressIndicatorController,
Color? progressIndicatorBackgroundColor,
Animation<Color>? progressIndicatorValueColor,
AwesomeMessagePosition awesomeMessagePosition = AwesomeMessagePosition.BOTTOM,
AwesomeMessageStyle awesomeMessageStyle = AwesomeMessageStyle.FLOATING,
Curve forwardAnimationCurve = Curves.easeOutCirc,
Curve reverseAnimationCurve = Curves.easeOutCirc,
Duration animationDuration = const Duration(seconds: 1),
AwesomeMessageStatusCallback? onStatusChanged,
double barBlur = 0.0,
double overlayBlur = 0.0,
Color overlayColor = Colors.transparent,
Form? userInputForm})
: this.title = title,
this.message = message,
this.titleText = titleText,
this.messageText = messageText,
this.icon = icon,
this.shouldIconPulse = shouldIconPulse,
this.maxWidth = maxWidth,
this.margin = margin,
this.padding = padding,
this.borderRadius = borderRadius,
this.borderColor = borderColor,
this.borderWidth = borderWidth,
this.backgroundColor = backgroundColor,
this.leftBarIndicatorColor = leftBarIndicatorColor,
this.boxShadows = boxShadows,
this.backgroundGradient = backgroundGradient,
this.mainButton = mainButton,
this.onTap = onTap,
this.duration = duration,
this.isDismissible = isDismissible,
this.dismissDirection = dismissDirection,
this.showProgressIndicator = showProgressIndicator,
this.progressIndicatorController = progressIndicatorController,
this.progressIndicatorBackgroundColor = progressIndicatorBackgroundColor,
this.progressIndicatorValueColor = progressIndicatorValueColor,
this.awesomeMessagePosition = awesomeMessagePosition,
this.awesomeMessageStyle = awesomeMessageStyle,
this.forwardAnimationCurve = forwardAnimationCurve,
this.reverseAnimationCurve = reverseAnimationCurve,
this.animationDuration = animationDuration,
this.barBlur = barBlur,
this.overlayBlur = overlayBlur,
this.overlayColor = overlayColor,
this.userInputForm = userInputForm,
super(key: key) {
this.onStatusChanged = onStatusChanged ?? (status) {};
}