PaymentActionBar class

Pinned bottom bar with the total and the step's main action, so both stay reachable however long the page is.

Place it in Scaffold.bottomNavigationBar. While updating the total says so and the host should pass a disabled action.

Inheritance

Constructors

PaymentActionBar({Key? key, required Widget action, Money? total, String? totalLabel, bool updating = false, double maxContentWidth = 640})
const

Properties

action → Widget
Main action; pass width: PaymentWidth.hug on PaymentButton. With no total the action fills the bar on phones and at large text, so pass a full-width button. From 600 dp of available footer width (632 dp of bar without side insets, with the default gutters) it hugs at the end edge of the maxContentWidth column, like other pinned footers (D59, D62). Side safe-area insets add to the 16 dp gutters, so the bar's content edges match a body in a SafeArea with the same gutters.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxContentWidth → double
Widest column for the bar's content, centred like the page's: the 640 dp D53 column by default. Pass the cap of the content above the bar, e.g. 1040 when it shows two columns, so the action's end edge lines up with the content's (#84).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
total → Money?
final
totalLabel → String?
final
updating → bool
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.
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, 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

Operators

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