Fluent2SheetPage<T> class

The go_router Page whose route is Fluent 2's page sheet, created on the root navigator so it rises over the shell's bar. drawer stands it as tall as its content on a phone and as the end drawer on the desktop; fullScreen raises a full-screen cover on the ground instead, drawn as a pushed page whose exit is the dismiss. Either publishes RoutePresentation.sheet around its child, so the screen inside derives its dismiss, or with back the way back.

Fluent2SheetPage<void>(drawer: true, child: const SharePage())
Inheritance

Constructors

Fluent2SheetPage({required Widget child, bool drawer = false, bool fullScreen = false, bool back = false, LocalKey? key, String? name})
A sheet route's page showing child.
const

Properties

arguments → Object?
The arguments passed to this route.
finalinherited
back → bool
Closes by the way back rather than the dismiss.
final
canPop → bool
When false, blocks the associated route from being popped.
finalinherited
child → Widget
What the sheet shows.
final
drawer → bool
As tall as its content on a phone; the end drawer on the desktop.
final
fullScreen → bool
A full-screen cover: no overlay, 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.