Uh oh!
There was an error while loading. Please reload this page.
[web] Move platformViewRegistry to ui_web - #41877
Conversation
ditman
commented
May 9, 2023
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? |
ditman
left a comment
There was a problem hiding this comment.
This is fantastic! Small question about imports organization (this is a new package, so we can have whatever library structure we want within it.)
Uh oh!
There was an error while loading. Please reload this page.
mdebbar
commented
May 10, 2023
As I mentioned in the PR description, I left a getter for |
Uh oh!
There was an error while loading. Please reload this page.
ditman
left a comment
There was a problem hiding this comment.
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
flutter-team-archive/engine@a6e37bd...ccf50f3 2023-05-23 skia-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from Zbd3haNY2Idcdu1Fj... to -dXJ_pnUVwmjscIYm... (flutter-team-archive/engine#42250) 2023-05-23 30870216+gaaclarke@users.noreply.github.com [Impeller] Removed last ivars to raw vk::Device's. (flutter-team-archive/engine#42215) 2023-05-23 skia-flutter-autoroll@skia.org Roll Skia from 225d51031ad0 to 292879d286e9 (5 revisions) (flutter-team-archive/engine#42249) 2023-05-23 zanderso@users.noreply.github.com Build arm64 FlutterEmbedder.framework and lipo the result (flutter-team-archive/engine#42233) 2023-05-23 aam@google.com Roll watcher dependency for web_ui to 1.1.0. (flutter-team-archive/engine#42248) 2023-05-23 mdebbar@google.com [web] Move platformViewRegistry to ui_web (flutter-team-archive/engine#41877) 2023-05-23 skia-flutter-autoroll@skia.org Roll Skia from 3ded22186598 to 225d51031ad0 (1 revision) (flutter-team-archive/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
…7416) flutter-team-archive/engine@a6e37bd...ccf50f3 2023-05-23 skia-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from Zbd3haNY2Idcdu1Fj... to -dXJ_pnUVwmjscIYm... (flutter-team-archive/engine#42250) 2023-05-23 30870216+gaaclarke@users.noreply.github.com [Impeller] Removed last ivars to raw vk::Device's. (flutter-team-archive/engine#42215) 2023-05-23 skia-flutter-autoroll@skia.org Roll Skia from 225d51031ad0 to 292879d286e9 (5 revisions) (flutter-team-archive/engine#42249) 2023-05-23 zanderso@users.noreply.github.com Build arm64 FlutterEmbedder.framework and lipo the result (flutter-team-archive/engine#42233) 2023-05-23 aam@google.com Roll watcher dependency for web_ui to 1.1.0. (flutter-team-archive/engine#42248) 2023-05-23 mdebbar@google.com [web] Move platformViewRegistry to ui_web (flutter-team-archive/engine#41877) 2023-05-23 skia-flutter-autoroll@skia.org Roll Skia from 3ded22186598 to 225d51031ad0 (1 revision) (flutter-team-archive/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-team-archive/engine#41877) through `dart:ui_web`, we can do some cleanup here. Part of #126831
In this PR, I'm leaving a getter for
platformViewRegistryindart:uifor backwards compatibility. At some point, we need to properly deprecate it (e.g. print a warning asking users to import it fromdart:ui_webinstead).Next step is to migrate all call sites in flutter/flutter, flutter/packages and flutter/devtools (anything else?).
Issue: flutter/flutter#126831
Fixesflutter/flutter#41563