https://kotlinlang.org logo
h

Hitanshu Dhawan

11/01/2020, 7:55 AM
Hey, what’s the best way to achieve this kind of animation? Should I use
IntPropKey()
and set the x,y coordinates using
Layout
composable? or is there any better way of achieving this?
j

jim

11/07/2020, 3:21 PM
You're ultimately going to need to store that information somewhere. To remain stateless probably the best you can do is hoist the state up: https://developer.android.com/jetpack/compose/state#stateless-composables
2 Views