Skip to content

Instantly share code, notes, and snippets.

@surajsau
Created December 7, 2020 18:00
Show Gist options
  • Save surajsau/2ca21b461d34c50aff13f70a3e460eac to your computer and use it in GitHub Desktop.
Save surajsau/2ca21b461d34c50aff13f70a3e460eac to your computer and use it in GitHub Desktop.
@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