JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
16.23k stars 1.18k forks source link

Ability to change implementation of Dialog/Popup #2000

Closed igordmn closed 1 month ago

igordmn commented 2 years ago

Compose 1.1.1

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

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

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.

AlexeyTsvetkov commented 1 year ago

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

okushnikov commented 2 months ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.