SwipeablePage<T> class

A specialized variant of CupertinoPage that allows for swiping back anywhere on the page unless canOnlySwipeFromEdge is true.

See also:

Inheritance

Constructors

SwipeablePage({bool canSwipe = true, bool canOnlySwipeFromEdge = false, double backGestureDetectionWidth = kMinInteractiveDimension, double backGestureDetectionStartOffset = 0.0, Duration? transitionDuration, Duration? reverseTransitionDuration, SwipeableTransitionBuilder? transitionBuilder, String? title, LocalKey? key, String? name, Object? arguments, String? restorationId, bool maintainState = true, bool fullscreenDialog = false, bool allowSnapshotting = true, required WidgetBuilder builder})

Properties

allowSnapshotting bool
Whether the route transition will prefer to animate a snapshot of the entering/exiting routes.
final
arguments Object?
The arguments passed to this route.
finalinherited
backGestureDetectionStartOffset double
If canOnlySwipeFromEdge is set to true, this value controls how far away from the left (LTR) or right (RTL) screen edge a gesture must start to be recognized for back navigation.
final
backGestureDetectionWidth double
If canOnlySwipeFromEdge is set to true, this value controls the width of the gesture detection area.
final
builder WidgetBuilder
The content to be shown in the Route created by this page.
final
canOnlySwipeFromEdge bool
Whether only back gestures close to the left (LTR) or right (RTL) screen edge are counted.
final
canSwipe bool
Whether the user can swipe to navigate back.
final
fullscreenDialog bool
Whether this page route is a full-screen dialog.
final
hashCode int
The hash code for this object.
no setterinherited
key LocalKey?
The key associated with this page.
finalinherited
maintainState bool
Whether the route should remain in memory when it is inactive.
final
name String?
The name of the route (e.g., "/settings").
finalinherited
restorationId String?
Restoration ID to save and restore the state of the Route configured by this page.
finalinherited
reverseTransitionDuration Duration?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
A title string for this route.
final
transitionBuilder → SwipeableTransitionBuilder
Custom builder to wrap the child widget.
final
transitionDuration Duration?
final

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