Flushbar<T> constructor
Flushbar<T> ({
- Key? key,
- String? title,
- Color? titleColor,
- double? titleSize,
- String? message,
- double? messageSize,
- Color? messageColor,
- Widget? titleText,
- Widget? messageText,
- Widget? icon,
- bool shouldIconPulse = true,
- double? maxWidth,
- EdgeInsets margin = const EdgeInsets.all(0.0),
- EdgeInsets padding = const EdgeInsets.all(16),
- BorderRadius? borderRadius,
- TextDirection textDirection = TextDirection.ltr,
- 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,
- FlushbarDismissDirection dismissDirection = FlushbarDismissDirection.VERTICAL,
- bool showProgressIndicator = false,
- AnimationController? progressIndicatorController,
- Color? progressIndicatorBackgroundColor,
- Animation<
Color> ? progressIndicatorValueColor, - FlushbarPosition flushbarPosition = FlushbarPosition.BOTTOM,
- double positionOffset = 0.0,
- FlushbarStyle flushbarStyle = FlushbarStyle.FLOATING,
- Curve forwardAnimationCurve = Curves.easeOutCirc,
- Curve reverseAnimationCurve = Curves.easeOutCirc,
- Duration animationDuration = const Duration(seconds: 1),
- FlushbarStatusCallback? onStatusChanged,
- double barBlur = 0.0,
- bool blockBackgroundInteraction = false,
- double? routeBlur,
- Color? routeColor,
- Form? userInputForm,
- Offset? endOffset,
- FlushbarRoute<
T?> ? flushbarRoute,
Implementation
Flushbar(
{Key? key,
this.title,
this.titleColor,
this.titleSize,
this.message,
this.messageSize,
this.messageColor,
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,
this.textDirection = TextDirection.ltr,
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 = FlushbarDismissDirection.VERTICAL,
this.showProgressIndicator = false,
this.progressIndicatorController,
this.progressIndicatorBackgroundColor,
this.progressIndicatorValueColor,
this.flushbarPosition = FlushbarPosition.BOTTOM,
this.positionOffset = 0.0,
this.flushbarStyle = FlushbarStyle.FLOATING,
this.forwardAnimationCurve = Curves.easeOutCirc,
this.reverseAnimationCurve = Curves.easeOutCirc,
this.animationDuration = const Duration(seconds: 1),
FlushbarStatusCallback? onStatusChanged,
this.barBlur = 0.0,
this.blockBackgroundInteraction = false,
this.routeBlur,
this.routeColor,
this.userInputForm,
this.endOffset,
this.flushbarRoute // Please dont init this
})
// ignore: prefer_initializing_formals
: onStatusChanged = onStatusChanged,
super(key: key) {
onStatusChanged = onStatusChanged ?? (status) {};
}