Sorry what do you mean by `custom PaddingValues ob...
# compose
k
Sorry what do you mean by
custom PaddingValues object that returns the animated values
? i didn't get it. Is there any example for this? I tried some piece of code to split into function
Copy code
@Composable
private fun PaddingViewAnimation() {
    var visible by remember { mutableStateOf(true) }
    val iconOffsetAnimation: Dp by animateDpAsState(
        if (visible) 13.dp else 0.dp, tween(1000)
    )
    PaddingViewAnimationStateLess(
        { iconOffsetAnimation },
        visible,
        onVisibleChange = {
            visible = it
        }
    )
}