Created
December 7, 2020 18:03
-
-
Save surajsau/722aa0c2f8b46547ab6b578b9bdef763 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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