FlashBar class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FlashBar
Constructors
-
FlashBar({Key? key, EdgeInsets padding = const EdgeInsets.all(16), Widget? title, required Widget message, Widget? icon, bool shouldIconPulse = true, Color? leftBarIndicatorColor, Widget? primaryAction, List<
Widget> ? actions, bool showProgressIndicator = false, AnimationController? progressIndicatorController, Color? progressIndicatorBackgroundColor, Animation<Color> ? progressIndicatorValueColor})
Properties
-
actions
→ List<
Widget> ? -
The (optional) set of actions that are displayed at the bottom of the flashbar.
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
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leftBarIndicatorColor → 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
- message → Widget
-
The message of the flashbar is displayed in the center of the flashbar in
a lighter font.
final
- padding → EdgeInsets
-
Adds a custom padding to Flashbar
final
- primaryAction → Widget?
-
A widget if you need an action from the user.
final
- progressIndicatorBackgroundColor → Color?
-
A LinearProgressIndicator configuration parameter.
final
- progressIndicatorController → AnimationController?
-
An optional AnimationController when you want to control the progress of your LinearProgressIndicator.
final
-
progressIndicatorValueColor
→ Animation<
Color> ? -
A LinearProgressIndicator configuration parameter.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- 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
- title → Widget?
-
The (optional) title of the flashbar is displayed in a large font at the top
of the flashbar.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _FlashBarState -
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