ZetaSystemBanner class
A banner displays an important, succinct message, and provides action for users to address. It draws the attention to the message by displaying it at the top in various colors.
To display on screen use ScaffoldMessenger.of(context).showMaterialBanner(ZetaSystemBanner())
. This will display the banner at the top of the page, below the AppBar.
Figma: https://www.figma.com/file/JesXQFLaPJLc1BdBM4sisI/%F0%9F%A6%93-ZDS---Components?node-id=22195-43965
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- MaterialBanner
- ZetaSystemBanner
- Available extensions
Constructors
- ZetaSystemBanner({Key? key, required BuildContext context, required String title, IconData? leadingIcon, ZetaSystemBannerStatus type = ZetaSystemBannerStatus.primary, bool titleCenter = false, Widget? trailing, bool? rounded, String? semanticLabel})
- Constructor for ZetaSystemBanner. See MaterialBanner for more information.
Properties
-
actions
→ List<
Widget> -
The set of actions that are displayed at the bottom or trailing side of
the MaterialBanner.
finalinherited
-
animation
→ Animation<
double> ? -
The animation driving the entrance and exit of the material banner when presented by the ScaffoldMessenger.
finalinherited
- backgroundColor → Color?
-
The color of the surface of this MaterialBanner.
finalinherited
- content → Widget
-
The content of the MaterialBanner.
finalinherited
- contentTextStyle → TextStyle?
-
Style for the text in the content of the MaterialBanner.
finalinherited
- dividerColor → Color?
-
The color of the divider.
finalinherited
- elevation → double?
-
The z-coordinate at which to place the material banner.
finalinherited
- forceActionsBelow → bool
-
An override to force the actions to be below the content regardless of
how many there are.
finalinherited
- 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 MaterialBanner.
finalinherited
- leadingPadding → EdgeInsetsGeometry?
-
The amount of space by which to inset the leading widget.
finalinherited
- margin → EdgeInsetsGeometry?
-
Empty space to surround the MaterialBanner.
finalinherited
- minActionBarHeight → double
-
The optional minimum action bar height.
finalinherited
- onVisible → VoidCallback?
-
Called the first time that the material banner is visible within a Scaffold when presented by the ScaffoldMessenger.
finalinherited
- overflowAlignment → OverflowBarAlignment
-
The horizontal alignment of the actions when the actions laid out in a column.
finalinherited
- padding → EdgeInsetsGeometry?
-
The amount of space by which to inset the content.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadowColor → Color?
-
The color of the shadow below the MaterialBanner.
finalinherited
- 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< MaterialBanner> -
Creates the mutable state for this widget at a given location in the tree.
inherited
-
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
-
paddingAll(
double space) → Widget -
Available on Widget, provided by the SpacingWidget extension
Equal padding on all sides. -
paddingBottom(
double space) → Widget -
Available on Widget, provided by the SpacingWidget extension
Padding on bottom only. -
paddingEnd(
double space) → Widget -
Available on Widget, provided by the SpacingWidget extension
Padding on start edge only. Is affected by whether the device is LTR or RTL: -
paddingHorizontal(
double space) → Widget -
Available on Widget, provided by the SpacingWidget extension
Equal padding on start and end. -
paddingStart(
double space) → Widget -
Available on Widget, provided by the SpacingWidget extension
Padding on start edge only. Is affected by whether the device is LTR or RTL: -
paddingTop(
double space) → Widget -
Available on Widget, provided by the SpacingWidget extension
Padding on top only. -
paddingVertical(
double space) → Widget -
Available on Widget, provided by the SpacingWidget extension
Equal padding on top and bottom. -
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, int wrapWidth = 65}) → 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}) → MaterialBanner -
Creates a copy of this material banner but with the animation replaced with the given animation.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited