MinimalPage<T> class

The go_router Page for a route pushed off a root: a page route that runs the page transition the host's theme installs (Minimal's push under MinimalHost), as Material's own page does.

A page on MinimalGround.media (a feed root whose tab is MinimalNavItem.media, a full-screen player pushed off one) stands in a MinimalGroundScope: dark tokens and a light status bar. A surface page is built as it is. A go_router pageBuilder returns it with key: state.pageKey.

MinimalPage<void>(key: const ValueKey('habit'), child: const HabitPage())
Inheritance

Constructors

MinimalPage({required Widget child, MinimalGround ground = MinimalGround.surface, LocalKey? key, String? name})
A page showing child.
const

Properties

arguments → Object?
The arguments passed to this route.
finalinherited
canPop → bool
When false, blocks the associated route from being popped.
finalinherited
child → Widget
The page's content.
final
ground → MinimalGround
The ground the page stands on.
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