-
Notifications
You must be signed in to change notification settings - Fork 408
fix: Undefined name 'platformViewRegistry'. #2273
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
@arthurbcd related to flutter/engine#41877 |
The ui.platformViewRegistry (currently deprecated) will be removed on the next flutter stable release. Which throws: `Error: Undefined name 'platformViewRegistry'.` The solution is to use `dart:ui_web` instead of `dart:ui`, both available in flutter.
according to flutter/engine@f37e78c |
revert #2273 @arthurbcd I've investigated the test failures and discovered a complex situation: - Initially, when running tests on the external PR, only the base branch was checked out (not including the commit in question: https://github.com/AgoraIO-Extensions/Agora-Flutter-SDK/actions/runs/14608607680/job/40982332098). This led to a false positive in our test results. - Further testing revealed multiple test failures on the main branch. To address this, I attempted to: - First, pin the minimum Flutter SDK version to 3.13.0 (which includes the ui-web fix flutter/engine@f37e78c) - However, this still resulted in numerous test failures - Given these issues, I've decided to: - Revert the problematic commit for now - Create a new issue to track this problem and work on a proper solution
Hi, I'm still having this issue agora_rtc_engine-6.5.2/lib/src/impl/platform/web/global_video_view_controller_platform_web.dart:53:8: Error: Undefined name 'platformViewRegistry'. I'm in flutter version 3.32.0 |
Hi @atetatet , please follow #2291 (comment) |
The ui.platformViewRegistry (currently deprecated) will be removed on the next flutter stable release.
Which throws:
Error: Undefined name 'platformViewRegistry'.
The solution is to use
dart:ui_web
instead ofdart:ui
, both available in flutter.