InformBanner class

Inheritance
Implemented types

Constructors

InformBanner({Key? key, required Widget content, TextStyle? contentTextStyle, List<Widget>? actions, double? elevation, Widget? leading, Color? backgroundColor, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? leadingPadding, bool forceActionsBelow = false, OverflowBarAlignment overflowAlignment = OverflowBarAlignment.end, Animation<double>? animation, VoidCallback? onVisible, Divider? divider, BorderRadius? borderRadius, Color? shadowColor, VoidCallback? onTap, Color? splashColor, Duration? duration, BoxBorder? border, EdgeInsets? margin})
const

Properties

actions List<Widget>
Never implementing this & never use it. Instead see _actions which is the replacement of this. Explanation of this:
no setteroverride
animation Animation<double>?
The animation driving the entrance and exit of the material banner when presented by the ScaffoldMessenger.
final
autoDismissible bool
Defines if the banner is autoDismissible.
no setter
backgroundColor Color?
The color of the surface of this InformBanner.
final
border BoxBorder?
Defines the border sides around the banner.
final
borderRadius BorderRadius?
Defines the borderRadius, by default is null.
final
content Widget
The content of the InformBanner.
final
contentTextStyle TextStyle?
Style for the text in the content of the InformBanner.
final
divider Divider?
Defines the bottom divider widget. In order to see it the elevation must be 0.
final
dividerColor Color?
The color of the divider.
finalinherited
duration Duration?
Defines the display duration time. After the duration ends the banner will be auto hided.
final
elevation double?
The z-coordinate at which to place the material banner.
final
forceActionsBelow bool
An override to force the actions to be below the content regardless of how many there are.
final
hasAction bool
Defines if the banner has an action. This is needed to define if the banner can be autoDismissible.
no setter
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leading Widget?
The (optional) leading widget of the InformBanner.
final
leadingPadding EdgeInsetsGeometry?
The amount of space by which to inset the leading widget.
final
margin EdgeInsets?
Defines the margin of the banner. Margins are the widgets outside spacing.
final
onTap VoidCallback?
A callback function, called when ever the material area is taped.
final
onVisible VoidCallback?
Called the first time that the material banner is visible within a Scaffold when presented by the ScaffoldMessenger.
final
overflowAlignment OverflowBarAlignment
The horizontal alignment of the actions when the actions laid out in a column.
final
padding EdgeInsetsGeometry?
The amount of space by which to inset the content.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowColor Color?
The color that the Material widget uses to draw elevation shadows.
final
splashColor Color?
The color of ink splashes.
final
surfaceTintColor Color?
The color used as an overlay on backgroundColor to indicate elevation.
finalinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<InformBanner>
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
withAnimation(Animation<double> newAnimation, {Key? fallbackKey}) InformBanner
Creates a copy of this material banner but with the animation replaced with the given animation.
override

Operators

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

Static Methods

createAnimationController({required TickerProvider vsync}) AnimationController
Creates an animation controller useful for driving a material banner's entrance and exit animation.
override