zt
08/15/2024, 6:47 PMDialogWindow(
visible = expanded,
onCloseRequest = { expanded = false }
) {
// provide parent locals here
CompositionLocalProvider {
content()
}
}Zach Klippenstein (he/him) [MOD]
08/15/2024, 7:14 PMCompositionContext is for. When you use Dialog or Popup, or even put a ComposeView inside a View inside another ComposeView, the new composition is wired up to the parent by passing its CompositionContext in. So this should happen automatically if you're using any of the built-in dialog facilities. I don't know what DialogWindow is, is that a desktop thing?zt
08/15/2024, 7:15 PMZach Klippenstein (he/him) [MOD]
08/15/2024, 7:15 PMDialogWindow comes fromzt
08/15/2024, 7:17 PMZach Klippenstein (he/him) [MOD]
08/15/2024, 7:20 PMZach Klippenstein (he/him) [MOD]
08/15/2024, 7:20 PMZach Klippenstein (he/him) [MOD]
08/15/2024, 7:20 PMzt
08/15/2024, 7:21 PMzt
08/15/2024, 7:33 PM