-
Notifications
You must be signed in to change notification settings - Fork 28.5k
Support multiple windows for desktop shells #30701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This comment has been minimized.
This comment has been minimized.
Maybe as a proof concept we could start with alert popups that open a separate window and can be dragged. Maybe like a Cupertino popover since they carry their own navigation internally on iPads. https://gist.github.com/AppleEducate/6f2a1188d6256b0eff79131891ce92f1 |
The place to start is agreement on, and design for, the technical approach that will be used to support multiple windows on desktop. A proof of concept can't come before a decision on what to build. |
Very true. 👍🏼 |
In OpenGL applications there is a need to call a method called like |
Does this have any implication on how web handles multiple tabs? |
I think that's a fundamentally different question that multi-view on desktop. It's possible that depending on what decision is made for web there might some internal aspects that would be the same, but without high-level designs for both it's hard to say. It certainly should be tracked as a separate issue from this, since much of the work would not be the same regardless. |
This is a deal breaker for an app I want to port from Swift to Flutter. Curious to hear if this is a priority for the team ? |
Why not do add to app? You can keep your swift code and slowly migrate over! |
You mean embed in the Swift app? The app itself is multi window by design. Embedding could be an option if this is going to take time. Also just a side question: does it support transparent windows with click through? |
Not sure, but i know it is a good option for existing apps! https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps That way the UI could be in Flutter and window management done by swift |
We're aware that this is a critical feature for a category of applications. That said, there are still many critical features not yet implemented for desktop. This is one of many priorities; it's not currently the top priority. |
What about a CSP-like approach? Provide a |
Here is a simple example for MacOS I created that modifies the AppDelegate and allows you to create and communicate between windows: https://github.com/rodydavis/multi_window 8000 |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Looks like 3.33 will have multi-view stuff included in the embedder so there's progress there. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@wanjm Typo, 3.23 if I'm looking at this commit's tags right. flutter/engine@de89124 |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I would like to once again remind everyone to read https://github.com/flutter/flutter/blob/master/docs/contributing/issue_hygiene/README.md before commenting. In particular:
If this issue continues to attract a significant number of unproductive comments, we will have to lock the issue. |
Can this problem be further improved with the help of the community? |
This comment was marked as off-topic.
This comment was marked as off-topic.
I think it may be worth linking this message from Canonical and subsequent responses |
Are there any plans for this feature in 2025? |
@czy-29 we're actively working on this, see: https://docs.flutter.dev/go/multi-window-api And the RFC PR: NB: this is in big flux, so things may be broken at times, we're planning to put up a PR for proper review in a week or two. |
See discussion in google/flutter-desktop-embedding#98
If we end up supporting multiple root views within one engine instance, this will require embedding API changes. If we don't, we'll need to have a viable strategy to recommend for coordinating between windows that works for cases that require constant synchronization (e.g., a tools palette in one window, with the canvas using those tools in another)
The text was updated successfully, but these errors were encountered: