Unresolved references from androidx.compose.animation and androidx.compose.animation.core

Viewed 862

Can anyone help me to find the replacement of below from compose animation and core.

  • androidx.compose.animation.DpPropKey
  • androidx.compose.animation.core.transitionDefinition
  • androidx.compose.animation.core.state
  • androidx.compose.animation.core.TransitionState

All are working fine with

compose_version = '1.0.0-alpha05'

but not working with

composeVersion = '1.0.0-beta06'

Unfortunately could not find in documentation https://developer.android.com/jetpack/androidx/releases/compose-animation

1 Answers

The whole set of animations were changed with a new set without a mapping 1:1.

Now you can use updateTransition or rememberInfiniteTransition.
More details here.

Related