Filip Wiesner
03/09/2021, 11:19 AMval ballSpacing = remember { Offset(0f, 48f * density) }
var ball1 by remember { mutableStateOf(Offset.Zero) }
val ball2 by animateOffsetAsState(ball1 + ballSpacing)
val ball3 by animateOffsetAsState(ball2 + ballSpacing)
I move ball1 with gestures and I want the other balls to follow. I must move the ball really slowly to trigger the animations but when it starts working it's smooth so long as I don't stop moving them (GIF in thread)Doris Liu
03/09/2021, 7:37 PMFilip Wiesner
03/09/2021, 9:57 PMDoris Liu
03/09/2021, 10:05 PMFilip Wiesner
03/09/2021, 10:16 PMDoris Liu
03/10/2021, 6:15 PMDynamicAnimation
lib on androidx. 😄Filip Wiesner
03/10/2021, 6:28 PMDynamicAnimations
when I was in college. I was using it to create a timetable where each day was a string of balls and each ball was one event/class.
So if I understand correctly this is not the desired behavior? I thought I was just using it wrong.Doris Liu
03/10/2021, 6:34 PMFilip Wiesner
03/10/2021, 6:41 PMDoris Liu
03/10/2021, 6:43 PMFilip Wiesner
03/10/2021, 6:46 PMDoris Liu
03/10/2021, 7:08 PM