i was wondering, what is the best way of tweeking ...
# compose
m
i was wondering, what is the best way of tweeking
Copy code
animateFloatAsState(
    targetValue = progress.percentage,
    animationSpec = tween(
        durationMillis = 1000,
        easing = LinearEasing
    )
)
to support a ‘pause’ state ?
as in, the value is animated, except when there is a boolean ‘pause’ that halts the animation
d
I'd recommend taking a look at
Animatable
.
Animatable#stop()
would effectively stop the animation. You can start it again with
animateTo
later on.