Hi all, I'm using the Compose multiplatform templa...
# compose
m
Hi all, I'm using the Compose multiplatform template (https://github.com/JetBrains/compose-multiplatform-template) and I am wondering how can I show a dialog? Neither
AlertDialog
nor
Dialog
classes are available so what am I supposed to use instead?
f
Dialog is available just in version 1.5.0-beta01 of compose
m
Okay, so what would be the alternative?
Popup
?
f
Popup as well. The alternative is update the new version if you really want use it.
a
They are just not available in common source set but you can use them in platform specific source sets. Also see this thread.
Common Features • `Dialog` API is available to use from common source set • `Popup` API is available to use from common source set • `WindowInsets` API is available to use from common source setA warning if `compose.kotlinCompilerPlugin` is set to `androidx.compose.compiler.compiler`
Dialog and Popup are available to use from common source set
a
Good to know, but what I said is still true for other window related components.