Skip to content

Wait for non-empty layout in platform view placeholder#112402

Merged
auto-submit[bot] merged 1 commit intoflutter:masterfrom
stuartmorgan-g:android-platform-view-placeholder-zero-size-layout
Oct 5, 2022
Merged

Wait for non-empty layout in platform view placeholder#112402
auto-submit[bot] merged 1 commit intoflutter:masterfrom
stuartmorgan-g:android-platform-view-placeholder-zero-size-layout

Conversation

@stuartmorgan-g
Copy link
Contributor

In PlatformViewLink, trigger creation of the platform view on the first non-empty layout, rather than the first layout, since using an empty size triggers an assertion in the platform view creation.

Fixes #111255

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

In `PlatformViewLink`, trigger creation of the platform view on the
first non-empty layout, rather than the first layout, since using an
empty size triggers an assertion in the platform view creation.

Fixes flutter#111255
@flutter-dashboard flutter-dashboard bot added the framework flutter/packages/flutter repository. See also f: labels. label Sep 26, 2022
Copy link
Contributor

@bparrishMines bparrishMines left a comment

Choose a reason for hiding this comment

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

LGTM

@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 5, 2022
@auto-submit auto-submit bot merged commit 5c38125 into flutter:master Oct 5, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 5, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Oct 5, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Oct 5, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 5, 2022
stuartmorgan-g added a commit to stuartmorgan-g/flutter that referenced this pull request Oct 6, 2022
XilaiZhang pushed a commit that referenced this pull request Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using WebView leads to size error in platform_views since Flutter 3.3.0

2 participants