FlashBar<T> constructor
const
FlashBar<T> ({
- Key? key,
- required FlashController<
T> controller, - FlashPosition position = FlashPosition.bottom,
- FlashBehavior? behavior = FlashBehavior.fixed,
- List<
FlashDismissDirection> dismissDirections = FlashDismissDirection.values, - Curve forwardAnimationCurve = Curves.easeOut,
- Curve reverseAnimationCurve = Curves.fastOutSlowIn,
- EdgeInsets? margin,
- Color? backgroundColor,
- double? elevation,
- Color? shadowColor,
- Color? surfaceTintColor,
- ShapeBorder? shape,
- Clip clipBehavior = Clip.none,
- Color? iconColor,
- TextStyle? titleTextStyle,
- TextStyle? contentTextStyle,
- Duration insetAnimationDuration = const Duration(milliseconds: 100),
- Curve insetAnimationCurve = Curves.fastOutSlowIn,
- EdgeInsets? padding,
- Widget? title,
- required Widget content,
- Widget? icon,
- bool shouldIconPulse = true,
- Color? indicatorColor,
- Widget? primaryAction,
- List<
Widget> ? actions, - bool showProgressIndicator = false,
- Animation<
double> ? progressIndicatorValue, - Color? progressIndicatorBackgroundColor,
- Animation<
Color> ? progressIndicatorValueColor, - bool useSafeArea = true,
- TransitionBuilder? builder,
Implementation
const FlashBar({
super.key,
required this.controller,
this.position = FlashPosition.bottom,
this.behavior = FlashBehavior.fixed,
this.dismissDirections = FlashDismissDirection.values,
this.forwardAnimationCurve = Curves.easeOut,
this.reverseAnimationCurve = Curves.fastOutSlowIn,
this.margin,
this.backgroundColor,
this.elevation,
this.shadowColor,
this.surfaceTintColor,
this.shape,
this.clipBehavior = Clip.none,
this.iconColor,
this.titleTextStyle,
this.contentTextStyle,
this.insetAnimationDuration = const Duration(milliseconds: 100),
this.insetAnimationCurve = Curves.fastOutSlowIn,
this.padding,
this.title,
required this.content,
this.icon,
this.shouldIconPulse = true,
this.indicatorColor,
this.primaryAction,
this.actions,
this.showProgressIndicator = false,
this.progressIndicatorValue,
this.progressIndicatorBackgroundColor,
this.progressIndicatorValueColor,
this.useSafeArea = true,
this.builder,
});