Dropsource / monarch

Monarch is a tool for building Flutter widgets in isolation. It makes it easy to build, test and debug complex UIs.
https://monarchapp.io
MIT License
433 stars 22 forks source link

On Linux: implement docking #69

Open fertrig opened 1 year ago

fertrig commented 1 year ago

Monarch has two windows, the Controller and the Preview. On macOS and Windows, we keep those two windows "docked" to each other. We haven't implemented that feature on Linux yet.

We are hoping to get help from the community on this issue.

These are the high-level requirements:

Since Monarch already implements this feature on macOS and Windows, then we can use that code as a model.

On macOS, see platform/macos/monarch_macos/WindowManager.swift, function setDocking: https://github.com/Dropsource/monarch/blob/46d4f79b3649960eff371aaf51192da999ff8e74/platform/macos/monarch_macos/WindowManager.swift#L316

On Windows, see platform/windows/src/window_manager.cpp, function setDocking: https://github.com/Dropsource/monarch/blob/46d4f79b3649960eff371aaf51192da999ff8e74/platform/windows/src/window_manager.cpp#L201