PageTransitionSpec class final
The theme's page transition, motion.page-transition: a kind alone,
or a kind with its duration and curve. None when not set: screens show
at once unless the theme (or the screen) asks for a transition.
motion:
page-transition: platform # the app type's own
# or
motion:
page-transition: { type: fade, duration: $motion.durations.fast, curve: ease-out }
The navigation starter's router follows it for every app type; a
screen may choose its own (@ScreenRoute(transition: ...)). Reduced
motion on the device makes every transition instant.
- Annotations
Constructors
- PageTransitionSpec({PageTransitionType type = PageTransitionType.platform, Duration? duration, Curve? curve})
-
A transition of
type,durationandcurve(null: the kind's own). The platform's by default, as in Flutter.const
Properties
- curve → Curve?
-
The curve of the animation, or
nullfor the kind's own.final - duration → Duration?
-
How long it takes, or
nullfor the kind's own.final - hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → PageTransitionType
-
The kind of transition.
final
Methods
-
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.
override
Static Methods
-
parseAt(
ThemeProperties p, String base) → PageTransitionSpec? -
Reads the transition written at
baseofp(a kind, or a map oftype,durationandcurve);nullwhen nothing is written. Throws a ThemePropertyException for a wrong value or key.