TransitionCover class

Groups the cover color and its hold duration for a "fade-through-color" transition.

When a ShaderTransition is given a ShaderTransition.cover, the transition becomes a three-phase sequence: the color wipes in over the outgoing page, holds at full cover for hold, then the incoming page wipes in over the color. With hold == Duration.zero it's a continuous cross-fade through the color (no hold frame).

hold sits inside ShaderTransition.duration and is internally clamped to at most 75% of it, so each wipe always keeps a visible share of the timeline regardless of what you pass.

WipeTransition(
  cover: TransitionCover(
    color: Colors.black,
    hold: Duration(milliseconds: 600),
  ),
)

Constructors

TransitionCover({required Color color, Duration hold = Duration.zero})
Creates a cover with the given color and optional hold (default Duration.zero — a continuous cross-fade with no hold frame).
const

Properties

color → Color
The flat fill color shown beneath the masked incoming page. Semi- transparent colors partially blend with the outgoing page.
final
hashCode → int
The hash code for this object.
no setterinherited
hold → Duration
How long the screen stays fully covered, between the cover wipe-in and the page wipe-out. Clamped to ≤ 75% of ShaderTransition.duration.
final
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