LedgerNavigationFrame class
An app's frame: the current destination's body with the navigation
the window earns. Under railFrom (600) the tab bar stands at the foot
(LedgerNavBar); from it the rail stands at the start
(LedgerSideBar with extended: false); from LedgerLayout.wide
(1024) the full side bar with the brand's wordmark. The page stands
above the tab bar or beside the rail or side bar; beside either, its
masthead heads it (the phone's strip is the tab bar's partner only).
The frame is ui_core's DesignAdaptiveShell, Ledger's bars painting it: the destinations are one tab stop, the arrows moving along them (mirrored right to left; Up and Down in the rail and the side bar), Enter or Space choosing; F6 moves the focus between the bar and the page; a screen reader hears the tab bar's tabs, each with its place ("Tab 1 of 4"), and the side bar as the navigation menu. The page keeps its state as the window crosses a width.
The middle of five destinations is the green act (a disc in the tab bar, the side bar's green button); an action stands there instead (in the tab bar it is a button beside the tabs, not one of them). Pages pushed over the frame (a record) cover it, as the source's do.
LedgerNavigationFrame(destinations: tabs, selectedIndex: tab, onDestinationSelected: (i) => setState(() => tab = i), brand: 'Quill', body: pages[tab])
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- LedgerNavigationFrame
Constructors
-
An app's frame:
bodywith the navigation the window earns.const
Properties
- action → ShellAction?
-
The app's act beside its destinations.
final
- body → Widget
-
The current destination's page.
final
- brand → String?
-
The app's name, for the side bar's wordmark.
final
-
destinations
→ List<
LedgerNavItem> -
The app's destinations, in the tab bar's order.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onDestinationSelected
→ ValueChanged<
int> -
Called with the destination chosen.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedIndex → int
-
The current destination.
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