not longer supported with the new Composable Window API? Switched to the new API and the AlertDialog crashs with
java.lang.IllegalStateException: CompositionLocal LocalAppWindow not provided
. When it isn't longer support, I assume the
androidx.compose.ui.window.Dialog
is the way to go for all kinds of Dialog?
i
Igor Demin
07/28/2021, 6:46 PM
Use
0.5.0-build270
, it is implemented there (but under
ExperimentalMaterialApi
)
The old dialog was moved to androidx.compose.material.v1.AlertDialog
🙏 1
Igor Demin
07/28/2021, 6:49 PM
but under
ExperimentalMaterialApi
We marked it as experimental, because look and feel and API for material AlertDialog aren't final, and can be changed in the future. Currently we show it as a layer of the window, not as a separate window (but you can change it via