-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Doc for multiple Flutters #5247
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
Conversation
sfshaza2
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know what's up with Travis, but let me kick off the build again.
| For the 1.26 release, communication between Flutter instances is done using | ||
| [platform channels](https://flutter.dev/docs/development/platform-integration/platform-channels) | ||
| (or [Pigeon](https://pub.dev/packages/pigeon)) via the host platform. To see | ||
| our roadmap on communication or other multiple-Flutters issues, see [flutter/flutter#72009](https://github.com/flutter/flutter/issues/72009). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| For the 1.26 release, communication between Flutter instances is done using | |
| [platform channels](https://flutter.dev/docs/development/platform-integration/platform-channels) | |
| (or [Pigeon](https://pub.dev/packages/pigeon)) via the host platform. To see | |
| our roadmap on communication or other multiple-Flutters issues, see [flutter/flutter#72009](https://github.com/flutter/flutter/issues/72009). | |
| As of the 1.26 release, communication between Flutter instances is handled using | |
| [platform channels][] (or [Pigeon][] from the host platform). To see | |
| our roadmap on communication, or other multiple-Flutters issues, see [Issue 72009]. | |
| [Issue 72009]: {{site.github}}/flutter/flutter/issues/72009 | |
| [Pigeon]: {{site.pub}}/packages/pigeon | |
| [platform channels]: /docs/development/platform-integration/platform-channels |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changes the meaning a bit. I'll tweak it a bit using your wording
| A sample demonstrating the usage of the new `FlutterEngineGroup` exist at | ||
| https://github.com/flutter/samples/tree/master/add_to_app/multiple_flutters for | ||
| Android and iOS. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That GitHub link gives me a 404.
| A sample demonstrating the usage of the new `FlutterEngineGroup` exist at | |
| https://github.com/flutter/samples/tree/master/add_to_app/multiple_flutters for | |
| Android and iOS. | |
| You can find a sample demonstrating how to use `FlutterEngineGroup` | |
| on both Android and iOS on[GitHub][]. | |
| [GitHub]: {{site.github}}/flutter/samples/tree/master/add_to_app/multiple_flutters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ya, there is indeed a bit of logistical gymnastics needed here. The samples PRs aren't merged in currently since the samples repo need to build on stable and the new samples are using new APIs created after the last stable. We would want to merge that sample when the next stable releases.
Should I remove this line for now so that this PR is mergeable and we can add it when the samples merge after the stable release?
dce28e9 to
a16faca
Compare
Co-authored-by: Shams Zakhour (ignore Sfshaza) <44418985+sfshaza2@users.noreply.github.com>
sfshaza2
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@gaaclarke, are you good with this PR? I'd like to land it. :) |
|
We can't merge this PR yet until we resolve https://docs.google.com/document/d/140-Jc6GIDy7XvAglpI92HAoUpg3oCZh-H1S0XCqluCo/edit?disco=AAAALXIywMo (unless you're ok with a broken link in the meantime). |
|
Yes, this looks good. I have two comments:
|
| our roadmap on communication, or other multiple-Flutters issues, see [Issue 72009][]. | ||
|
|
||
| {{site.alert.warning}} | ||
| In 1.26, the use of [platform views][] is not supported in conjunction with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gaaclarke did I get this right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good.
|
I'm assuming you're referring to the sidenav menu name right? I'd be for keeping it consistent with the rest of the add to app content (in the form of "Add to an iOS app / Add a single Flutter screen" rather than "FlutterViewController"). I think it's a bit more approachable for users who have a goal in mind, and then match an API to the goal after reading the doc. |
a47285f to
04c381d
Compare
|
Actually the URL is already present. That's why CI was passing. Merging this. |
Fixes flutter/flutter#37644.
To merge when the next stable releases.