CupertinoSheetPage<T> class

A modal page that overlays a widget over the current route and animates it from the bottom with a cupertino modal sheet appearance

Clip the child widget to rectangle with top rounded corners and adds top padding and top safe area.

The type T specifies the return type of the route which can be supplied as the route is popped from the stack via Navigator.pop by providing the optional result argument.

See also:

Inheritance

Constructors

CupertinoSheetPage({required Widget child, bool maintainState = true, LocalKey? key, String? name, Object? arguments})
Creates a material page.
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 content to be shown in the Route created by this page.
final
hashCode → int
The hash code for this object.
no setterinherited
key → LocalKey?
The key associated with this page.
finalinherited
maintainState → bool
final
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