Colton Idle
03/17/2021, 8:43 PMColton Idle
03/17/2021, 8:44 PM@ExperimentalAnimationApi
@Composable
fun ExpandCollapseView2() {
var visible by remember { mutableStateOf(false) }
Column(modifier = Modifier.clickable { visible = !visible }.padding(48.dp)) {
Row() {
Text("Testing with animatedVisibility")
}
AnimatedVisibility(visible = visible) {
Column {
Text(
"Testing second line",
modifier = Modifier.padding(bottom = 24.dp),
)
}
}
}
}
Louis Pullen-Freilich [G]
03/17/2021, 8:56 PMDoris Liu
03/17/2021, 9:01 PMsize
of the DrawScope
changes. 🙂Colton Idle
03/18/2021, 10:44 AM