Skip to content

Instantly share code, notes, and snippets.

@AndreVero
Created April 10, 2024 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndreVero/dd74ee988d7dec2649bf247453f539ff to your computer and use it in GitHub Desktop.
Save AndreVero/dd74ee988d7dec2649bf247453f539ff to your computer and use it in GitHub Desktop.
OnItemPicked callback
onItemPicked = {
scope.launch {
rotationAnimation.animateTo(
if (it.isDayTime) 0f else 180f,
defaultSpringSpec
)
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment