ShaderTransitions class
Entry point: preload at startup, then the factory methods to push shader-powered routes.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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.
inherited
Static Properties
Static Methods
-
circle<
T> ({required Widget page, Alignment origin = Alignment.center, Duration duration = const Duration(milliseconds: 700), double feather = 2.0, bool invert = false, TransitionCover? cover, bool? swipeBack, RouteSettings? settings}) → ShaderPageRoute< T> -
Pushes a CircleTransition (iris) route. Set
invertfor a contracting iris;originto start from a corner or tap point. -
diamond<
T> ({required Widget page, SweepDirection direction = SweepDirection.topLeftToBottomRight, Duration duration = const Duration(milliseconds: 800), double cellSize = 40.0, double feather = 0.0, bool invert = false, TransitionCover? cover, bool? swipeBack, RouteSettings? settings}) → ShaderPageRoute< T> - Pushes a DiamondTransition route.
-
preload(
) → Future< void> - Pre-compiles all bundled fragment shaders. Call before the first transition; subsequent calls are no-ops.
-
wipe<
T> ({required Widget page, SweepDirection direction = SweepDirection.leftToRight, Duration duration = const Duration(milliseconds: 600), double softness = 4.0, double rotation = 0.0, bool invert = false, TransitionCover? cover, bool? swipeBack, RouteSettings? settings}) → ShaderPageRoute< T> -
Pushes a WipeTransition route.
softnessis the feather width in px (0 = hard edge);rotationtilts the edge in radians.