Is it possible to create something like that using...
# compose
i
Is it possible to create something like that using Compose?
r
Yes, quite possible. It's just dialogue
i
But there is no just dialogue. There is a alertDialog which contains stuff like onDismissRequest, title, confirm/dismiss button
c
You should be able to recreate this with Box + Row + ProgressSpinner + Text
i
Ah okey, I will try Thanks
c
idk if ProgressSpinner is a thing (it didn't autofill for me) But you should be able to use Dialog instead of AlertDialog. This confused me a few days ago too because I couldn't find a plain old Dialog but it turned out to be an AS issue.
Copy code
var openDialog by remember { mutableStateOf(false) }
Button({ openDialog = !openDialog }) { Text("Open") }
if (openDialog) {
    Dialog(onDismissRequest = { openDialog = false }) {
        Box { Row { 
            //ProgressSpinner() 
            Text(text = "test") 
        } }
    }
}
✔️ 1
c
Ha yes, it’s
CircularProgressIndicator
🙂
K 2