razonyang / hugo-theme-bootstrap-comments

1 stars 0 forks source link

post/implementing_flying_hearts_animation_in_jetpack_compose/ #60

Closed utterances-bot closed 2 years ago

utterances-bot commented 2 years ago

Flying Hearts Animation in Jetpack Compose: Quick and Easy Edition - Cups of Code

The tutorial of Flying Hearts Animation in Android native UI toolkit, Jetpack Compose

https://cupsofcode.com/post/implementing_flying_hearts_animation_in_jetpack_compose/

desgraci commented 2 years ago

Nice theory, but the code is missing the definition of heartPath

desgraci commented 2 years ago

NVM, found it, amazing job!

desgraci commented 2 years ago

BTW the jittering on your animation using updateTransition is due to the that keeps changing, so the translation on Y is set back and forth cause there is no remember, forcing the view into recomposing each time.