DiamondTransition class final

A grid of diamond cells that reveal the incoming page in a sweeping band.

Within the moving band each cell fills from its center outward, so the edge reads as a shimmer of growing diamonds rather than a hard line.

const DiamondTransition(
  direction: SweepDirection.leftToRight,
  cellSize: 36,
)
Inheritance

Constructors

DiamondTransition({double cellSize = 40.0, double feather = 0.0, SweepDirection direction = SweepDirection.topLeftToBottomRight, Duration duration = const Duration(milliseconds: 800), TransitionCover? cover, bool invert = false})
Creates a diamond-grid transition.
const

Properties

cellSize → double
Diamond grid cell size in logical pixels. Clamped at the shader to never go below 1 px.
final
cover → TransitionCover?
Optional flat-color cover for a cinematic fade-through transition. null (default) lets the outgoing page show through — a classic mask reveal.
finalinherited
direction → SweepDirection
Which corner/edge the sweep originates from.
final
duration → Duration
Total animation time, used unchanged for both push and pop.
finalinherited
feather → double
Edge softness of the sweeping band, in logical pixels. 0 is allowed.
final
hashCode → int
The hash code for this object.
no setterinherited
invert → bool
Reverses the reveal direction of the effect. For CircleTransition this turns the expanding iris into a contracting one; for directional transitions it flips which side reveals first.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shaderKey → String
The ShaderRegistry key (and .frag basename) backing this transition.
no setteroverride

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