Alex
05/30/2022, 8:09 PMAnimatedContent? Like if I want to get notified if an animation has finished.
e.g. AnimatedContent gets new targetState, animates, calls my listener when animation has finishedIcyrockton
05/30/2022, 10:08 PMDoris Liu
05/31/2022, 12:45 AMTransition.AnimatedContent API, and listen for when the Transition.currentState changes via snapshotFlow { yourTransition.currentState }.collect {// do something with the state change} in a LaunchedEffectAlex
05/31/2022, 12:03 PMAlex
05/31/2022, 12:04 PMtargetState will be equal to currentState, so I can just listen for targetState != currentState -> targetState == currentStateAlex
05/31/2022, 12:04 PMDoris Liu
05/31/2022, 4:13 PMif (targetState == currentState && targetState == someSpecificState) { // some more UI here } in a composable function. 🙂