MinimalActionBar class
A page's persistent commit strip: a summary of what is about to happen
on the leading side (a total, a count, the one line that matters) and
the primary action on the trailing side. In MinimalScaffold(footer:) leave
floating false — the screen owns the ground, the hairline and the
insets; floating: true stands it on its own bordered card for a body
that keeps its edges.
Without a summary the action takes the whole width. At large text scales, or narrower than stackBelow, the summary stacks over the action rather than squeezing it.
MinimalActionBar(summary: '3 of 5 kept', detail: 'Two to go', label: 'Log all', onPressed: logAll)
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- MinimalActionBar
Constructors
Properties
- action → Widget?
-
A composed action in place of the built-in button.
final
- busy → bool
-
Busy state for the built-in button; a custom action owns its state.
final
- busyLabel → String?
-
Set while the action runs: the button says it, with a spinner, and takes
no presses.
final
- detail → String?
-
The quiet prose line under the summary.
final
- floating → bool
-
Whether it stands on its own bordered card over the body, rather than on
the screen's footer band.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → String
-
What the action says.
final
- onPressed → VoidCallback?
-
Runs the action; null disables it.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- summary → String?
-
The summary's figure — a total, a count, a time — printed in the mono
MinimalThemeData.figure.
final
- summaryContent → Widget?
-
A composed summary in place of summary and detail.
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, 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
Constants
- stackBelow → const double
- The width under which the summary stacks over the action.