dbaelz
07/28/2021, 6:34 PMandroidx.compose.material.AlertDialog
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?Igor Demin
07/28/2021, 6:46 PM0.5.0-build270
, it is implemented there (but under ExperimentalMaterialApi
)
The old dialog was moved to androidx.compose.material.v1.AlertDialogIgor Demin
07/28/2021, 6:49 PMbut underWe 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 viaExperimentalMaterialApi
dialogProvider = UndecoratedWindowAlertDialogProvider
)dbaelz
07/28/2021, 7:21 PMIgor Demin
07/28/2021, 7:26 PM