MinimalAppBar class

The page's header band: 52 px on the ground over a 1 px hairline, its appearance follows the route (MinimalRouteChrome). title names the page and subtitle appears beside it in monospace.

On a nav root the title leads at 17 px semibold with its meta beside it (Today Fri 28 Aug). On a pushed page the route's back button leads and the band turns compact: the parent crumb, a slash, then the title in the ink and its meta (‹ Habits / Morning run HAB-4); a page that prints its own heading in the body leaves the title out (‹ Habits / HAB-4). In a sheet the band is the card's header: subtitle as the context pill, the title beside it, and the close at the far end. actions stand at the trailing edge — MinimalIconButtons, which wear the bordered 32 px square here, with at most one solid for the primary act.

titleTrailing stands a control beside a root's title, where its meta would print (Orders Today ▾: a MinimalMenu.button range or scope menu); the compact and sheet registers ignore it.

large pins the root register on or off; null (the default) derives it. Leave leading unset so the route's exit appears; never author a back or close control.

MinimalAppBar(title: 'Today', subtitle: 'Fri 28 Aug', actions: [MinimalIconButton(LucideIcons.search, label: 'Search', onPressed: search), MinimalIconButton(LucideIcons.plus, label: 'New habit', variant: MinimalIconButtonVariant.primary, onPressed: add)])
Inheritance

Constructors

MinimalAppBar({Key? key, String? title, String? subtitle, String? parent, Widget? leading, List<Widget> actions = const <Widget>[], bool? large, Widget? titleTrailing})
A page's top bar.
const

Properties

actions → List<Widget>
Buttons at its end.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
large → bool?
The root register (leading title plus meta) pinned on or off; null derives it from the route.
final
leading → Widget?
What stands before the title: a back button.
final
parent → String?
Where a pushed page was reached from (Habits), printed as the breadcrumb before the title in the compact register. A root, which was reached from nowhere, ignores it.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subtitle → String?
One secondary line: the root's mono meta (a date, a count), a pushed page's id beside its title, or the sheet's context pill.
final
title → String?
The page's own name.
final
titleTrailing → Widget?
A control beside the root title (a range or scope menu), before the meta; ignored by the compact and sheet registers.
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

Static Methods

autoLeading(BuildContext context, {Key? key}) → Widget?
The route's exit control: the bordered back button on a pushed page, the bare close on a sheet, nothing on a root. It pops the route, as Material's BackButton does. A page authors no back or close control of its own — this is it.