FadeForwardsPageTransitionsBuilder class

Used by PageTransitionsTheme to define a horizontal MaterialPageRoute page transition animation that looks like the default page transition used on Android U.

This example shows the default page transition on Android.
link

To create a local project with this code sample, run:
flutter create --sample=material.FadeForwardsPageTransitionsBuilder.1 mysample

See also:

Inheritance

Constructors

FadeForwardsPageTransitionsBuilder({Color? backgroundColor})
Constructs a page transition animation that matches the transition used on Android U.
const

Properties

backgroundColor → Color?
The background color during transition between two routes.
final
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 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

Constants

kTransitionMilliseconds → const int
The value of transitionDuration in milliseconds.