ZdsBottomBar class

A container typically used with Scaffold.bottomNavigationBar, in showZdsBottomSheet.bottomBuilder, or as the last child of a Column that contains an Expanded to ensure ZdsBottomBar stays at the bottom.

Typically used with a Scaffold:

Scaffold(
  bottomNavigationBar: ZdsBottomBar(
    child: bottomBarContents,
  ),
)

The following example shows how it can be used in a ZdsBottomSheet as a bottom action bar:

showZdsBottomSheet(
  bottomBuilder: (context) => ZdsBottomBar(
    child: Row(
      children: [Spacer(), ZdsButton(), ZdsButton()]
    ),
  ),
);

Alternatively, it may be used as a Column's last child to support a wider variety of actions. If this is the case, ensure that the ZdsBottomBar covers the entire width of the screen, and that it is not used anywhere but in the bottom of the screen.

Inheritance
Implemented types
Available Extensions

Constructors

ZdsBottomBar({Key? key, Widget? child, Color? color, List<BoxShadow>? shadows, double minHeight = kBottomBarHeight, EdgeInsets? contentPadding})
Creates a bottom bar that can be used as a bottom application bar, or as a bottom action bar
const

Properties

child Widget?
The widget that will be below this widget in the widget tree, typically a Row.
final
color Color?
The background color of this bottom bar. Defaults to the ZdsBottomBarTheme value.
final
contentPadding EdgeInsets?
Empty space to inscribe inside this widget. The child, if any, is placed inside this padding. Defaults to the ZdsBottomBarTheme value.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
minHeight double
The height that this bottom bar will be. Defaults to kBottomBarHeight.
final
preferredSize Size
The size this widget would prefer if it were otherwise unconstrained.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadows List<BoxShadow>?
The shadows behind bottom bar. Defaults to the ZdsBottomBarTheme value.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's 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.
override
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