Doris Liu
01/29/2021, 12:57 AMtransitionDefinition based transitions have been deprecated in alpha 11. The replacements are: updateTransition and rememberInfiniteTransition for the finite and infinite use cases, respectively. I know it's a large amount of API change. π
Hopefully, the new API is more straightforward to use. If you have any questions about them, or any issue with your migration, please let me know. I'm happy to help. πRafs
01/29/2021, 6:57 AMAdriano Celentano
01/29/2021, 7:21 AMBenjO
01/29/2021, 8:05 AMrsktash
01/29/2021, 4:09 PMDoris Liu
01/29/2021, 7:05 PMAnimatable.animateTo ? First rememberCoroutineScope from the composable, and launch a coroutine in the modifier similar to this: https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[β¦]lingDemo.kt;drc=b40ab8e06820b1c02795daca34142fd3c482dc1c;l=58Doris Liu
01/29/2021, 7:07 PMCoroutineScope returned from rememberCoroutineScope effectively scopes the lifecycle of the animation to the composable. When the composable leaves composition, animation will be automatically cancelled as a result of the CoroutineScope getting cancelled. πRafs
01/29/2021, 11:02 PMonStateChangeFinished from the old transitions api. It was a cool way to know when the state transition was completed.Doris Liu
01/29/2021, 11:07 PMTransition.currentState against Transition.targetState. They are the same when state transition is completed.rsktash
01/30/2021, 3:27 AMTash
01/31/2021, 1:09 AMrsktash
01/31/2021, 11:41 AMDoris Liu
01/31/2021, 5:58 PM