rajesh
09/14/2021, 7:03 AMBox
for few seconds and make it disappears.chris-horner
09/14/2021, 7:16 AM@Composable
fun SomeUi(showBox: Boolean) {
// ...other UI code
if (showBox) Box()
// ...other UI code
}
chris-horner
09/14/2021, 7:18 AM@Composable
fun SomeUi() {
var showBox by remember { mutableStateOf(true) }
LaunchedEffect(Unit) {
delay(2_000)
showBox = false
}
if (showBox) Box()
}