-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[web] Move platformViewRegistry to ui_web #41877
Conversation
We need to follow the flutter deprecation policy, because this used to be a public API, and we know for a fact that people have used it on their own apps to define their custom platform views. I don't think we own anything else that uses this. Maybe G3 has some internal usages too? |
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 is fantastic! Small question about imports organization (this is a new package, so we can have whatever library structure we want within it.)
As I mentioned in the PR description, I left a getter for |
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!
But we need to start planning the deprecation. I think printing a warning is a good first step while we continue migrating the projects that we own. What do you think?
SGTM!
Please consider tackling the webOnlyAssetManager next, that would allow to migrate all of flutter/packages out of this! :P
…127416) flutter/engine@a6e37bd...ccf50f3 2023-05-23 skia-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from Zbd3haNY2Idcdu1Fj... to -dXJ_pnUVwmjscIYm... (flutter/engine#42250) 2023-05-23 30870216+gaaclarke@users.noreply.github.com [Impeller] Removed last ivars to raw vk::Device's. (flutter/engine#42215) 2023-05-23 skia-flutter-autoroll@skia.org Roll Skia from 225d51031ad0 to 292879d286e9 (5 revisions) (flutter/engine#42249) 2023-05-23 zanderso@users.noreply.github.com Build arm64 FlutterEmbedder.framework and lipo the result (flutter/engine#42233) 2023-05-23 aam@google.com Roll watcher dependency for web_ui to 1.1.0. (flutter/engine#42248) 2023-05-23 mdebbar@google.com [web] Move platformViewRegistry to ui_web (flutter/engine#41877) 2023-05-23 skia-flutter-autoroll@skia.org Roll Skia from 3ded22186598 to 225d51031ad0 (1 revision) (flutter/engine#42246) Also rolling transitive DEPS: fuchsia/sdk/core/linux-amd64 from Zbd3haNY2Idc to -dXJ_pnUVwmj If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC bdero@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…lutter#127416) flutter/engine@a6e37bd...ccf50f3 2023-05-23 skia-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from Zbd3haNY2Idcdu1Fj... to -dXJ_pnUVwmjscIYm... (flutter/engine#42250) 2023-05-23 30870216+gaaclarke@users.noreply.github.com [Impeller] Removed last ivars to raw vk::Device's. (flutter/engine#42215) 2023-05-23 skia-flutter-autoroll@skia.org Roll Skia from 225d51031ad0 to 292879d286e9 (5 revisions) (flutter/engine#42249) 2023-05-23 zanderso@users.noreply.github.com Build arm64 FlutterEmbedder.framework and lipo the result (flutter/engine#42233) 2023-05-23 aam@google.com Roll watcher dependency for web_ui to 1.1.0. (flutter/engine#42248) 2023-05-23 mdebbar@google.com [web] Move platformViewRegistry to ui_web (flutter/engine#41877) 2023-05-23 skia-flutter-autoroll@skia.org Roll Skia from 3ded22186598 to 225d51031ad0 (1 revision) (flutter/engine#42246) Also rolling transitive DEPS: fuchsia/sdk/core/linux-amd64 from Zbd3haNY2Idc to -dXJ_pnUVwmj If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC bdero@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Now that `platformViewRegistry` is [exposed](flutter/engine#41877) through `dart:ui_web`, we can do some cleanup here. Part of #126831
In this PR, I'm leaving a getter for
platformViewRegistry
indart:ui
for backwards compatibility. At some point, we need to properly deprecate it (e.g. print a warning asking users to import it fromdart:ui_web
instead).Next step is to migrate all call sites in flutter/flutter, flutter/packages and flutter/devtools (anything else?).
Issue: flutter/flutter#126831
Fixes flutter/flutter#41563