ExpressivePageTransitionsBuilder class

A page transition using the Material 3 shared-axis (X) pattern, via the official animations package. The incoming route slides in along the horizontal axis and fades through while the outgoing route fades/slides out — the recognizable M3 forward/backward motion between hierarchy levels.

Crucially, SharedAxisTransition.fillColor paints the theme surface behind the moving pages, so the slide never exposes the black void behind the navigator. Honours reduced-motion by collapsing to a plain cross-fade.

Wire it into ThemeData.pageTransitionsTheme (see expressivePageTransitionsTheme) so every pushed route shares one motion language.

Inheritance

Constructors

ExpressivePageTransitionsBuilder()
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 setterinherited

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