Skip to content

Instantly share code, notes, and snippets.

@surajsau
Created December 7, 2020 18:03
Show Gist options
  • Save surajsau/722aa0c2f8b46547ab6b578b9bdef763 to your computer and use it in GitHub Desktop.
Save surajsau/722aa0c2f8b46547ab6b578b9bdef763 to your computer and use it in GitHub Desktop.
@Composable
fun SlotText(
state: TransitionState,
modifier: Modifier = Modifier
) {
val current = state[currentSlotValue].toInt() % 10
val delta = state[currentSlotValue] - state[currentSlotValue].toInt()
val yOffset = (delta * 50).dp
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment