LedgerSheetPage<T> class

The go_router Page whose route is Ledger's page sheet, created on the root navigator so it rises over the shell's bar. drawer stands it as tall as its content, confirm as the narrower dialog of a question at desktop width; fullScreen raises a full-screen cover on the ground instead, with no barrier, drawn as a pushed page whose exit is the close. Either publishes RoutePresentation.sheet around its child, so the screen inside derives its close, or with back the way back.

LedgerSheetPage<void>(name: 'goal-new', drawer: true, child: const NewGoalPage())
Inheritance

Constructors

LedgerSheetPage({required Widget child, bool drawer = false, bool confirm = false, bool fullScreen = false, bool back = false, LocalKey? key, String? name})
A page sheet holding child.
const

Properties

arguments → Object?
The arguments passed to this route.
finalinherited
back → bool
Closes by the way back rather than the close: a detail read and left like a page.
final
canPop → bool
When false, blocks the associated route from being popped.
finalinherited
child → Widget
The sheet's page.
final
confirm → bool
A question its foot's acts answer: at desktop width the dialog stands 440 wide to a task's 480.
final
drawer → bool
As tall as its content (at most the sheet's tallest).
final
fullScreen → bool
A full-screen cover: no barrier, no card.
final
hashCode → int
The hash code for this object.
no setterinherited
key → LocalKey?
The key associated with this page.
finalinherited
name → String?
The name of the route (e.g., "/settings").
finalinherited
onPopInvoked → PopInvokedWithResultCallback<T>
Called after a pop on the associated route was handled.
finalinherited
restorationId → String?
Restoration ID to save and restore the state of the Route configured by this page.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

canUpdate(Page other) → bool
Whether this page can be updated with the other page.
inherited
createRoute(BuildContext context) → Route<T>
Creates the Route that corresponds to this page.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

closesBack(BuildContext context) → bool
Whether the sheet page context stands in closes by the way back (back); the top bar reads it to derive its exit.