Skip to content

webview_flutter scroll feels sluggish on Android #61280

@AInoob

Description

@AInoob

Hi, so the demo (https://github.com/flutter/plugins/tree/master/packages/webview_flutter/example) feels sluggish on Android. I tested
flutter_webview_plugin (https://github.com/fluttercommunity/flutter_webview_plugin/tree/master/example) and it feels much faster. I also tested native Android webview, React Native webview, so I can confirm that it's webview_flutter specific issue.

So I did checked the code of flutter_webview_plugin, and it looks like it's just drawing native webview on top of flutter, which is why it's scrolling is smooth. So I think this is due to the fact that webview_flutter is using Platform Views. Can you please confirm this is the case?

I don't think any additional information is needed, but if you do, please let me know and I can provide them.

  • Did you ran on release mode?
    Yes, I actually tested both emulator and release mode on my phone, both I could tell the difference between webview_flutter and all other webviews (which were smooth).
  • Can you provide minimum runnable code?
    I just ran the example code, so it's the example code.

My app needs webview to load third party website, so it's not possible for me to reimplement website into Flutter. Currently my solution is similar to flutter_webview_plugin, where on Android I draw native views on top of flutter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    f: scrollingViewports, list views, slivers, etc.found in release: 1.20Found to occur in 1.20has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: webviewThe WebView pluginpackageflutter/packages repository. See also p: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions