LiquidMorphState class
The fully computed render state for one frame of a liquid morph animation.
All values are pre-calculated and ready to be applied directly to widget geometry. Consumers must not re-derive values from the raw animation value.
Constructors
- LiquidMorphState({required double pathT, required double sizeT, required double currentDx, required double currentDy, required double pushDx, required double pushDy, required double anchorScale, required double blend, required double containerScale, required MorphPhase phase, double triggerPushDx = 0.0, double triggerPushDy = 0.0, double triggerImpactScale = 1.0, double triggerWidthProgress = 1.0, double platterScale = 0.0, double platterOpacity = 0.0, double contentOpacity = 0.0, double contentBlurSigma = 0.0, bool isPlatterActive = false})
-
Creates a new LiquidMorphState.
const
Properties
- anchorScale → double
-
Scale factor for the anchor (ghost trigger) blob in
[0.0 – 1.0].final - blend → double
-
Metaball merge intensity in SDF blur units, clamped to
[0.0 – 28.0].final - containerScale → double
-
Scale pulse applied to the platter container (Blob B) during spring
overshoot phases.
final
- contentBlurSigma → double
-
Gaussian blur sigma (logical px) for the platter's inner items while it
collapses on close (
0.0at rest and throughout open).final - contentOpacity → double
-
Opacity (
[0.0 – 1.0]) for the platter's inner items / content.final - currentDx → double
-
Absolute horizontal displacement of the platter body (Blob B) from the
trigger center, in logical pixels.
final
- currentDy → double
-
Absolute vertical displacement of the platter body (Blob B) from the
trigger center, in logical pixels.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isPlatterActive → bool
-
Whether the morphing platter (Blob B) is currently active and should be
painted in the overlay.
final
- pathT → double
-
Position interpolation value — drives the J-curve overshoot on open and
coupled contraction on close.
final
- phase → MorphPhase
-
Semantic lifecycle phase of the morph for this frame.
final
- platterOpacity → double
-
Glass material visibility factor (
[0.0 – 1.0]) for the morphing platter (Blob B).final - platterScale → double
-
Uniform platter scale factor (
1.0 → 0.20on close aroundtrigger.center, matching iOS 27_UIContextMenuView;sizeTon open).final - pushDx → double
-
Horizontal recoil displacement applied to the anchor/trigger on close.
final
- pushDy → double
-
Vertical recoil displacement applied to the anchor/trigger on close.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sizeT → double
-
Size interpolation value — drives the teardrop size expansion and coupled
close contraction.
final
- triggerImpactScale → double
-
Tactile impact compression scale (
~0.96–1.0) applied to the trigger in parallel with triggerPushDx / triggerPushDy during close.final - triggerPushDx → double
-
Parallel horizontal recoil displacement for the trigger button on close,
in logical pixels.
final
- triggerPushDy → double
-
Parallel vertical recoil displacement for the trigger button on close,
in logical pixels.
final
- triggerWidthProgress → double
-
Centered horizontal width progress for wide/pill triggers (
tw > th), matching native iOS 27MagicMorphView#2: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.
inherited