ShaderPageTransitionsBuilder class

A PageTransitionsBuilder that applies a ShaderTransition app-wide via ThemeData.pageTransitionsTheme.

MaterialApp(
  theme: ThemeData(
    pageTransitionsTheme: const PageTransitionsTheme(
      builders: {
        TargetPlatform.android: ShaderPageTransitionsBuilder(
          WipeTransition(direction: SweepDirection.leftToRight),
        ),
        TargetPlatform.iOS: ShaderPageTransitionsBuilder(CircleTransition()),
      },
    ),
  ),
)

Note: routes themselves must be non-opaque for the outgoing page to show through. MaterialPageRoute is opaque by default, so for the full cross-fade effect prefer ShaderPageRoute; this builder is best for covered transitions (with a TransitionCover) where the incoming page is the only thing that needs to be visible.

Inheritance

Constructors

ShaderPageTransitionsBuilder(ShaderTransition transition)
Creates an app-wide shader page 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
transition → ShaderTransition
The shader transition applied to every matching route.
final
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