FlashBar<T> class

Inheritance

Constructors

FlashBar({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})
const

Properties

actions List<Widget>?
The (optional) set of actions that are displayed at the bottom of the flashbar.
final
backgroundColor Color?
final
behavior FlashBehavior?
Flash can be floating or be grounded to the edge of the screen.
final
builder TransitionBuilder?
Used to wrap the child widget.
final
clipBehavior Clip
final
content Widget
The message of the flashbar is displayed in the center of the flashbar in a lighter font.
final
contentTextStyle TextStyle?
final
controller FlashController<T>
final
dismissDirections List<FlashDismissDirection>
The direction in which the widget can be dismissed.
final
elevation double?
final
forwardAnimationCurve Curve
final
hashCode int
The hash code for this object.
no setterinherited
icon Widget?
You can use any widget here, but I recommend Icon or Image as indication of what kind of message you are displaying. Other widgets may break the layout
final
iconColor Color?
final
indicatorColor Color?
If not null, shows a left vertical bar to better indicate the humor of the notification. It is not possible to use it with a Form and I do not recommend using it with LinearProgressIndicator
final
insetAnimationCurve Curve
The curve to use for the animation shown when the system keyboard intrudes into the space that the dialog is placed in.
final
insetAnimationDuration Duration
The duration of the animation to show when the system keyboard intrudes into the space that the dialog is placed in.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
margin EdgeInsets?
final
padding EdgeInsets?
final
position FlashPosition
Flash can be based on FlashPosition.top or on FlashPosition.bottom of your screen.
final
primaryAction Widget?
A widget if you need an action from the user.
final
progressIndicatorBackgroundColor Color?
A LinearProgressIndicator configuration parameter.
final
progressIndicatorValue Animation<double>?
An optional Animation when you want to control the progress of your LinearProgressIndicator.
final
progressIndicatorValueColor Animation<Color>?
A LinearProgressIndicator configuration parameter.
final
reverseAnimationCurve Curve
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowColor Color?
final
shape ShapeBorder?
final
shouldIconPulse bool
An option to animate the icon (if present). Defaults to true.
final
showProgressIndicator bool
True if you want to show a LinearProgressIndicator.
final
surfaceTintColor Color?
final
title Widget?
The (optional) title of the flashbar is displayed in a large font at the top of the flashbar.
final
titleTextStyle TextStyle?
final
useSafeArea bool
Prevents showing in SafeArea.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<FlashBar>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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