8000 Support multi-display on Android · Issue #134405 · flutter/flutter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Support multi-display on Android #134405

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

Open
rekire opened this issue Sep 11, 2023 · 7 comments
Open

Support multi-display on Android #134405

rekire opened this issue Sep 11, 2023 · 7 comments
Labels
a: multi window Issues related to multi window support c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter P2 Important issues not at the top of the work list platform-android Android applications specifically team-android Owned by Android platform team triaged-android Triaged by Android platform team

Comments

@rekire
Copy link
Contributor
rekire commented Sep 11, 2023

Use case

Similar to #30701 and #48838

Android has also multi window/display support I would like to use this feature. This could be helpful for picture in pucture mode too.

For testing can be a second screen enabled in the developer settings of Android.

Documentation about multi display on Android can be found here.

Multiple instances of an activity on multiple displays.

Figure 3. Multiple instances of an activity on multiple displays.

@brainwo
Copy link
brainwo commented Sep 11, 2023

Do you have any example of native Android apps that do this? (or any explanation on that matter)
The documentation you shared in another issue was about enabling secondary display emulation as a picture in picture window, for development purpose.
This is not related to multi window nor picture in picture mode.

As for running Flutter in secondary display, you can already do that.

@rekire
Copy link
Contributor Author
rekire commented Sep 11, 2023

I am working on a point of sale (POS) which can also run on a Android device with a second screen. Something like this elo device.

From the documentation aspect check this. The main aspect is that I would like to have a single widget tree with two rendering piplines (one per screen) so that I can keep things in sync with the same state, without using a second activity and interprocess comunication.

@brainwo
Copy link
brainwo commented Sep 11, 2023

multiwindow

Multi-window mode enables multiple apps to share the same screen simultaneously. Apps can be side by side or one above the other (split-screen mode), one app in a small window overlaying other apps (picture-in-picture mode), or individual apps in separate movable, resizable windows (free-form mode).
https://developer.android.com/guide/topics/large-screens/multi-window-support

This is not what you want. The documentation is about having multiple apps in a screen rather than an app in multiple screens.

@rekire
Copy link
Contributor Author
rekire commented Sep 11, 2023

Actually it is the right page, just you need to scroll down a bit, to the section multi display (I had to build the anchor part of the url by hand)

Multiple instances of an activity on multiple displays.

Figure 3. Multiple instances of an activity on multiple displays.

@dam-ease dam-ease added in triage Presently being triaged by the triage team c: new feature Nothing broken; request for a new capability platform-android Android applications specifically c: proposal A detailed proposal for a change to Flutter team-android Owned by Android platform team and removed in triage Presently being triaged by the triage team labels Sep 11, 2023
@dam-ease dam-ease changed the title Support multiple display on Android Support multi-display on Android Sep 11, 2023
@dkwingsmt dkwingsmt moved this to Backlog in Multi Window Sep 12, 2023
@reidbaker reidbaker added the P2 Important issues not at the top of the work list label Sep 14, 2023
@reidbaker
Copy link
Contributor

We think that multi display is currently a nice to have for android. Flutter more broadly is working on multi view but it requires examining a lot of the codebase where we make the assumption that there is one widget tree. I expect that one of the desktop/web platforms will support multi display first. Android can then re evaluate the demand and effort required to land that feature.

@renefloor
Copy link
Contributor

@reidbaker I do have another possible use case for multi window on mobile (Android and iOS) besides the big screens.

We are adding Flutter to a native app. For this you have to make a decision for running 1 engine or running multiple engines. When going for multiple engines it's possible to show multiple Flutter views inside the native app, but it's very difficult (at this moment) to share data between the engines. That's basically Phase 3 of this story: #72009

The other option (that we currently do) is to use 1 engine and make sure you navigate correctly between different Flutter features. That way you easily share state between features just like a regular Flutter app. However, because we only have 1 engine, we can only show 1 Flutter feature at a time.

When we have multi-window on Android it would be really nice if we can use that multi-window structure to show multiple Flutter windows inside an existing native app. I think having multi-window on 1 engine is my preference over having easier interop between multiple engines.

@jkrogers9862
Copy link

The best example I can come up with for this is in existence within Microsofts own Powerpoint app which works the same as the PC version with limitations.

Powerpoint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: multi window Issues related to multi window support c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter P2 Important issues not at the top of the work list platform-android Android applications specifically team-android Owned by Android platform team triaged-android Triaged by Android platform team
Projects
Status: Backlog
Development

No branches or pull requests

8 participants
0