Skip to content
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

Flutter upgraded from 3.24.5 to 3.27.1, webview displays a white screen #2470

Open
2 tasks done
marchlqq opened this issue Dec 20, 2024 · 1 comment
Open
2 tasks done
Labels
bug Something isn't working

Comments

@marchlqq
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I found a demo,
github:
https://github.com/pichillilorenzo/flutter_inappwebview.git

Use branch: 6.1.5
Use branch: 6.1.5

However, you need to add a line of code. In the in_app_webiew_example.screen.dart file, line 93, in the build method, add the following code:

SystemChannels.platform_views.invokeMethod('synchronizeToNativeViewHierarchy', false);
I verified that 3.24.5 and 3.27.1, one is normal and the other is abnormal.

@OverRide
Widget build(BuildContext context) {
SystemChannels.platform_views.invokeMethod('synchronizeToNativeViewHierarchy', false);
return Scaffold(
appBar: AppBar(title: Text("InAppWebView")),
drawer: myDrawer(context: context),
Please help confirm it as soon as possible.

Expected Behavior

Web display is normal

Steps with code example to reproduce

use github:
https://github.com/pichillilorenzo/flutter_inappwebview.git

Use branch: 6.1.5
However, you need to add a line of code. In the in_app_webiew_example.screen.dart file, line 93, in the build method, add the following code:

SystemChannels.platform_views.invokeMethod('synchronizeToNativeViewHierarchy', false);
I verified that 3.24.5 and 3.27.1, one is normal and the other is abnormal.

Stacktrace/Logs

none

Flutter version

3.27.1

Operating System, Device-specific and/or Tool

android

Plugin version

v6.0.0 - v6.1.5

Additional information

none

Self grab

  • I'm ready to work on this issue!
@marchlqq marchlqq added the bug Something isn't working label Dec 20, 2024
@marchlqq
Copy link
Author

I also submitted the same issue on flutter's github, but it has not been resolved yet.
flutter/flutter#160490

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant