CupertinoPageTransitionsBuilder class
A PageTransitionsBuilder that provides an iOS-style page transition animation.
The page slides in from the right and exits in reverse. It also shifts to the left in a parallax motion when another page enters to cover it. This transition is commonly seen in native iOS applications.
In a CupertinoApp, this transition is used automatically when navigating with CupertinoPageRoute.
See also:
- CupertinoPageRoute, which uses this transition style by default for Cupertino apps.
- CupertinoPageTransition, the widget that implements the iOS page transition animation.
- MaterialPageRoute, an adaptive PageRoute that can use this builder through PageTransitionsTheme.
- PageTransitionsTheme, which defines the page transitions used by MaterialPageRoute for different target platforms.
- Inheritance
-
- Object
- PageTransitionsBuilder
- CupertinoPageTransitionsBuilder
Constructors
- CupertinoPageTransitionsBuilder()
-
Constructs a page transition animation that matches the iOS transition.
const
Properties
- delegatedTransition → DelegatedTransitionBuilder?
-
Provides a secondary transition to the previous route.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- reverseTransitionDuration → Duration
-
The duration the transition going in reverse.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transitionDuration → Duration
-
The duration the transition going forwards.
no setteroverride
Methods
-
buildTransitions<
T> (PageRoute< T> route, BuildContext context, Animation<double> animation, Animation<double> secondaryAnimation, Widget child) → Widget -
Wraps the child with one or more transition widgets which define how
routearrives on and leaves the screen.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