RectMorphTween class abstract final

Pure-function interpolation helpers for rect-based overlay morph.

Maps progress (0.0 = origin card, 1.0 = fullscreen) to visual properties. All methods are static, side-effect free, and deterministic.

Internally delegates to MorphEngine. The public API is preserved for backward compatibility.

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 Methods

adjacentCardOpacity(double expandProgress) double
Opacity for adjacent carousel cards. Fades out during expand.
adjacentCardScale() double
Scale for adjacent (non-active) carousel cards.
cardContentOpacity(double progress) double
Card/preview content opacity. Fades out as we approach fullscreen. Staggered: starts fading at 0.25, fully gone by 0.55.
computeCardRect(Size screenSize, {double widthFraction = 0.85, double heightFraction = 0.72}) Rect
Compute a centered card rect from screen size and dimension fractions.
detailContentOpacity(double progress) double
Detail/fullscreen content opacity. Fades in from ~0.30 to 0.60.
morphBackgroundScale(double progress, {double minScale = 0.95}) double
Background scale (slight zoom-out).
morphBlur(double progress, {double maxBlur = 6.0}) double
Background blur sigma.
morphElevation(double progress, {double baseElevation = 4.0, double peakElevation = 16.0}) double
Shadow elevation: peaks in the middle of the transition, then drops. At 0.0 → baseElevation, at 0.5 → peakElevation, at 1.0 → 0.0.
morphHeight(double progress, double originHeight, double fullHeight) double
Interpolated height.
morphLeft(double progress, double originLeft, double fullLeft) double
Interpolated left position.
morphRadius(double progress, {double maxRadius = 16.0}) double
Corner radius: maxRadius at origin → 0.0 at fullscreen.
morphRect(double progress, Rect origin, Rect fullscreen) Rect
Interpolated rect between origin and fullscreen.
morphScrimOpacity(double progress, {double maxOpacity = 0.5}) double
Scrim (barrier) opacity behind the overlay card.
morphTop(double progress, double originTop, double fullTop) double
Interpolated top position.
morphWidth(double progress, double originWidth, double fullWidth) double
Interpolated width.
overlayBackgroundScale(double overlayProgress, double expandProgress, {double minScale = 0.95}) double
Background scale for the two-phase overlay system.
overlayBlur(double expandProgress, {double maxBlur = 6.0}) double
Background blur for the overlay (scales with expand progress only).
overlayScrimOpacity(double overlayProgress, double expandProgress, {double maxOpacity = 0.5}) double
Combined scrim opacity for the two-phase overlay system. Moderate dim during card mode, stronger during fullscreen.