Thread
#compose
    m

    Marko Novakovic

    1 year ago
    is there a way to animate
    FontWeight
    and
    FontSize
    ?
    e

    Eric Boggs

    1 year ago
    Take a look at @ExperimentalAnimationApi
    val fontSize by transition.animateInt(label = "header transition text size") { state ->
        when(state) {
            <http://ScrolledState.Top|ScrolledState.Top> -> 32
            ScrolledState.Scrolled -> 20
        }
    }
    Text(
        stringResource(id = R.string.some_string),
        fontSize = fontSize.sp,
    )
    Something like that
    m

    Marko Novakovic

    1 year ago
    thank you, I will try