`AnimatedVisibility` is not getting shown even `mu...
# compose
m
AnimatedVisibility
is not getting shown even
mutableStateOf
is true Code in 🧵
Copy code
@ExperimentalAnimationApi
@Composable
private fun SettingsListItem(
    text: String,
    content: @Composable () -> Unit
) {
    var isExpanded by remember { mutableStateOf(false) }

    Column {
        SettingsItem(
            text = text,
            onClick = { isExpanded = !isExpanded }
        )
        AnimatedVisibility(visible = isExpanded) {
            content()
        }
    }
}
t
which version of compose are u using? I think you need to use the
AnimatedVisibility
that takes in a
MutableTransitionState
instead of a
Boolean
m
yeah, got it working !!!
👍🏼 1