This file contains hidden or 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
<template name="col" value="androidx.compose.foundation.layout.Column($MODIFIER$) { $END$ }" description="Creates a Column" toReformat="true" toShortenFQNames="true"> | |
<variable name="MODIFIER" expression="completeSmart()" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="KOTLIN" value="true" /> | |
<option name="KOTLIN_COMMENT" value="false" /> | |
</context> | |
</template> | |
<template name="rmfs" value="androidx.compose.runtime.remember { androidx.compose.runtime.mutableFloatStateOf($INITIAL_VALUE$) } $END$" description="remembers a mutable float state" toReformat="true" toShortenFQNames="true"> | |
<variable name="INITIAL_VALUE" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> |
This file contains hidden or 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 CounterAnimationRow( | |
count: Int, | |
modifier: Modifier = Modifier, | |
charComposable: @Composable RowScope.(Char) -> Unit, | |
) { | |
var oldCount by remember { mutableIntStateOf(count) } | |
val increasingValueContentTransform = remember { | |
slideInVertically { -it } + fadeIn() togetherWith slideOutVertically { it } + fadeOut() | |
} |