Jetpack Compose Show Budy Dialog

@Composablefun test() {    var showBusy by remember { mutableStateOf(false) }    Button(onClick = { showBusy = true }) {      Text("Show Busy")    }    if (showBusy) {        BusyDialog("I am Busy")    }}
fun BusyDialog(title: String? = null) {    Dialog(        onDismissRequest = { },        DialogProperties(dismissOnBackPress = false, dismissOnClickOutside = false)        ) {        Box(            contentAlignment = Alignment.Center,            modifier = Modifier                .size(100.dp)                .background(MaterialTheme.colors.surface.copy(alpha = 0.7f), shape = RoundedCornerShape(8.dp))        ) {            CircularProgressIndicator()        }    }}

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.