MinimalScaffold class
Root of every Minimal screen: the ground, the safe areas, a scrolling body by default, and chrome the route derives (MinimalRouteChrome).
Top contract: the page authors its topBar — a MinimalAppBar, whose register the route decides — or has none. A pushed page or a sheet page that authors none still gets a bare MinimalAppBar, because its way out is the route's, never the page's. The bar is docked in the layout over its own permanent hairline; content scrolls below it, never under it.
Bottom contract: screen-edge chrome occupies the bottom only through this
widget's slots. In scroll mode the body reserves the occluded height (the
safe-area inset, the shell's bar, or a floating control's allowance) in
its scroll padding; with scroll: false that allowance is published to
the body as MediaQuery bottom padding, so an inner scrollable reserves
it itself. A nav root never owns the bottom edge — the shell's bar
stands there — so footer and floating belong to pushed, sheet and
shell-free pages. A footer is docked on the ground over a hairline and
insets by the true device safe area.
In a sheet the screen is as tall as its content (up to the card's cap): the card, not the screen, is the surface.
MinimalScaffold(topBar: MinimalAppBar(title: 'Today', subtitle: 'Fri 28 Aug'), padding: EdgeInsets.zero, body: Column(children: rows))
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- MinimalScaffold
Constructors
- MinimalScaffold({Key? key, required Widget body, Widget? topBar, Widget? floating, bool scroll = true, EdgeInsetsGeometry? padding, bool fullBleed = false})
-
A page around
body.const
Properties
- body → Widget
-
The page's content.
final
- floating → Widget?
-
A control floating over the body's bottom-trailing corner, the gutter
in from the edge and MinimalChromeMetrics.floatingGap above the safe
area. Content scrolls beneath it; the body reserves
MinimalChromeMetrics.floatingAllowance for it.
final
-
Docked above the bottom edge (a sticky action, a MinimalActionBar).
Gets the gutter and the footer's own hairline.
final
- fullBleed → bool
-
The body owns the top edge and runs behind the status bar (a hero, a
canvas). A bar over it docks under the status bar as usual, and the
body reads the occluded height as MediaQuery top padding.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- padding → EdgeInsetsGeometry?
-
The body padding in scroll mode; MinimalInsets.screen by default. A
list whose rows run edge to edge passes
EdgeInsets.zero.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scroll → bool
-
Wrap the body in a scroll view with padding.
final
- topBar → Widget?
-
Usually a MinimalAppBar. Unset, a root has no bar and a pushed or
sheet page gets the bare derived one.
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