Skip to content

Conversation

@xster
Copy link
Member

@xster xster commented Feb 2, 2021

Fixes flutter/flutter#37644.

To merge when the next stable releases.

@xster xster requested review from gaaclarke and sfshaza2 February 2, 2021 21:59
@google-cla google-cla bot added the cla: yes Contributor has signed the Contributor License Agreement label Feb 2, 2021
Copy link
Contributor

@sfshaza2 sfshaza2 left a 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.

Comment on lines 16 to 19
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).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

Copy link
Member Author

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

Comment on lines 86 to 88
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.
Copy link
Contributor

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.

Suggested change
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

Copy link
Member Author

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?

@xster xster force-pushed the multiple-flutters branch from dce28e9 to a16faca Compare February 9, 2021 21:24
xster and others added 2 commits February 9, 2021 13:30
Co-authored-by: Shams Zakhour (ignore Sfshaza) <44418985+sfshaza2@users.noreply.github.com>
Copy link
Contributor

@sfshaza2 sfshaza2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sfshaza2
Copy link
Contributor

@gaaclarke, are you good with this PR? I'd like to land it. :)

@xster
Copy link
Member Author

xster commented Feb 10, 2021

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).

@gaaclarke
Copy link
Member

gaaclarke commented Feb 10, 2021

Yes, this looks good. I have two comments:

  1. @xster and I were talking and it would be nice to mention that platform views aren't supported.
  2. I have a bit of a niggle about calling this thing "multiple flutters" officially. I wonder if talking about "FlutterEngineGroup" would be more clear. Instead of naming it by an abstraction of the use case, calling it the name of the API.

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
Copy link
Member Author

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good.

@xster
Copy link
Member Author

xster commented Feb 10, 2021

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.

@xster xster force-pushed the multiple-flutters branch from a47285f to 04c381d Compare February 11, 2021 21:45
@xster
Copy link
Member Author

xster commented Feb 11, 2021

Actually the URL is already present. That's why CI was passing. Merging this.

@xster xster merged commit 9f9fe7f into flutter:master Feb 11, 2021
@xster xster deleted the multiple-flutters branch February 11, 2021 21:47
filiph pushed a commit to filiph/website that referenced this pull request Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Contributor has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document the recommended way of producing multiple embedded Flutter UI / navigation states

3 participants