Do I have to do something special to close an `AlertDialog` pressing back key or clicking outside? I...
n
Do I have to do something special to close an
AlertDialog
pressing back key or clicking outside? I saw the
properties
parameter receives an
DialogProperties
object which has these properties (
dismissOnBackPress
and
dismissOnClickOutside
) set to true by default. But looks like it’s not working πŸ˜•
m
Copy code
Dialog(onDismissRequest = { selectLang.value = false }) {
Well, it works for me , onDissmisRequest I set to false the var that leads the dialog to show off ...
πŸ‘ 1
n

https://media.giphy.com/media/QJsP0cTAJhg7O47ub2/giphy.gifβ–Ύ

Thanks @MBegemot πŸ˜‰