compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Ability to change implementation of Dialog/Popup

Open igordmn opened this issue 3 years ago • 1 comments

Compose 1.1.1

Currently, when we use Dialog or Popup, we use hard-coded implementation:

  • to open a Dialog we use native platform window
  • to open a Popup we just draw the content of the popup over all other content on Canvas.

This prevents usage of Dialog/Popups in the other implementations of Compose:

  • LWJGL
  • ui-test

These implementations use ComposeScene under the hood. We need to invent some API, which allows to specify the factory for creating Dialogs/Popups, and pass it via ComposeScene constructor, or as a CompositionLocal.

igordmn avatar Apr 12 '22 13:04 igordmn

A relevant issue https://github.com/JetBrains/compose-multiplatform/issues/2924

AlexeyTsvetkov avatar Apr 03 '23 18:04 AlexeyTsvetkov