Created
December 7, 2020 18:00
-
-
Save surajsau/2ca21b461d34c50aff13f70a3e460eac 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 Slot( | |
from: Int, | |
to: Int, | |
.. | |
) { | |
SlotText( | |
state = transition( | |
definition = transitionDefinition { | |
state(0) { this[currentTickerValue] = from.toFloat() } | |
state(1) { this[currentTickerValue] = if(from > to) (to + 10).toFloat() else to.toFloat() } | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment