Fix counter animation
continuous-integration/drone/push Build is passing Details

pull/5/head
avalin 9 months ago
parent b83c0686c6
commit 87b22580ec

@ -70,8 +70,13 @@ fun AllInTopBarCoinCounter(
targetState = char,
transitionSpec = {
val delayMillis = (countString.indices.count() - i) * 50
(slideInVertically(tween(delayMillis)) { it } togetherWith
slideOutVertically(tween(delayMillis)) { -it })
if (oldAmount <= amount) {
(slideInVertically(tween(delayMillis)) { it } togetherWith
slideOutVertically(tween(delayMillis)) { -it })
} else {
(slideInVertically(tween(delayMillis)) { -it } togetherWith
slideOutVertically(tween(delayMillis)) { it })
}
},
label = ""
) { char ->

Loading…
Cancel
Save