Mehdi Haghgoo
08/21/2021, 3:56 PMDoris Liu
08/21/2021, 5:32 PMTransition.currentState == Transition.targetState .
You could: 1) Use MutableTransitionState to create the Transition/AnimatedVisibility, and change the MutableTransitionState#targetState when MutableTransitionState.isIdle .
or 2) Create a snapshotFlow of the Transition.currentState to get the event when the state changes.
If you are only trying to fade in & out a heart repeatedly, a repeatable animation in an InfiniteTransition or Transition may be a better choice.Mehdi Haghgoo
08/21/2021, 8:23 PMDoris Liu
08/21/2021, 8:37 PMMehdi Haghgoo
08/21/2021, 8:49 PMDoris Liu
08/21/2021, 8:53 PMMehdi Haghgoo
08/21/2021, 8:59 PM