Hello fellow developers, Is there anyway to set animation completion time for AnimatedVisibilty? I ...
d
Hello fellow developers, Is there anyway to set animation completion time for AnimatedVisibilty? I checked docs https://developer.android.com/jetpack/compose/animation#animatedvisibility but nothing is mentioned regarding the time. By default animation is too fast for my requirement.
f
The transition parameters have animation spec which can have duration (e.g. spring does not have duration if I recall correctly)
d
Thank you @Filip Wiesner Simply adding
animationSpec
parameter solved my problem like this
Copy code
animationSpec = tween(durationMillis = 500)
🙌 1
f
Please don't put that much text into the main thread message. The general rule is to make the main thread message as small as possible so posts by other people are visible too.
d
ok, got it. Removed unnecessary part.
f
Thank you 🙏