PredictiveBackPageTransitionsBuilder class
Used by PageTransitionsTheme to define a MaterialPageRoute page transition animation that looks like the default page transition used on Android U and above when using predictive back.
Predictive back is only supported on Android U and above, and if this PageTransitionsBuilder is used by any other platform, it will fall back to FadeForwardsPageTransitionsBuilder.
When used on Android U and above, animates along with the back gesture to reveal the destination route. Can be canceled by dragging back towards the edge of the screen.
See also:
- PredictiveBackFullscreenPageTransitionsBuilder, which is another variant of Android's predictive back page transitition.
- FadeForwardsPageTransitionsBuilder, which defines the default page transition that's similar to the one provided in Android 16.
- ZoomPageTransitionsBuilder, which defines the default page transition that's similar to the one provided in Android 10.
- OpenUpwardsPageTransitionsBuilder, which defines a page transition that's similar to the one provided by Android 9.
- FadeUpwardsPageTransitionsBuilder, which defines a page transition that's similar to the one provided by Android 8.
- CupertinoPageTransitionsBuilder, which defines a horizontal page transition that matches native iOS page transitions.
- https://developer.android.com/design/ui/mobile/guides/patterns/predictive-back#shared-element-transition, which is the Android spec for this page transition, called the Shared Element page transition.
- Inheritance
-
- Object
- PageTransitionsBuilder
- PredictiveBackPageTransitionsBuilder
Constructors
- PredictiveBackPageTransitionsBuilder.new()
- Creates an instance of a PageTransitionsBuilder that matches Android U's predictive back transition. const
Properties
- delegatedTransition → DelegatedTransitionBuilder?
- Provides a secondary transition to the previous route. no setterinherited
- 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
route
arrives 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