useAnimatedDimen
fun ComponentScope.useAnimatedDimen(targetValue: Dimen, spec: FiniteAnimationSpec<Dimen> = spring(), trigger: AnimationTrigger = AnimationTrigger.Immediate, label: String = "dimen"): Value<Dimen>
Animates a Dimen value, automatically starting a new animation whenever targetValue changes.
Dimensions are converted to pixel values for animation computation and converted back to Dimen using pixel units. The resourceResolver is captured at creation time for dp/sp-to-px conversion.
Return
A Value containing the current animated dimension.
Parameters
targetValue
The dimension to animate toward. Changes trigger new animations.
spec
The animation specification. Defaults to spring.
trigger
Controls when the animation begins receiving frame callbacks. Defaults to AnimationTrigger.Immediate.
label
Optional label for debugging and tracing attribution.