Webview lag on android #74894
Labels
c: performance
Relates to speed or footprint issues (see "perf:" labels)
p: webview
The WebView plugin
P2
Important issues not at the top of the work list
package
flutter/packages repository. See also p: labels.
perf: speed
Performance issues related to (mostly rendering) speed
platform-android
Android applications specifically
team-android
Owned by Android platform team
triaged-android
Triaged by Android platform team
Details
Target Platform: android
Devices: Huawei p20 lite (android version 9)
I'm having a problem using the official webview plugin on android (on ios everything is fine), the webview really lag if you scroll, i also tried enabling Hybrid composition, this solve the problem with the webview which works fine but make the entire app lag
there is my code: https://gist.github.com/fbeccaceci/f706024fe311470336ed516531fbbe4b
virtualDisplay.mp4
HybridComposition.mp4
Logs
Logs
Flutter doctor output:
[✓] Flutter (Channel stable, 1.22.5, on macOS 11.1 20C69 darwin-x64, locale it-IT)
• Flutter version 1.22.5 at /Users/ipla/flutter
• Framework revision 7891006 (7 settimane fa), 2020-12-10 11:54:40 -0800
• Engine revision ae90085a84
• Dart version 2.10.4
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/ipla/Library/Android/sdk
• Platform android-30, build-tools 30.0.2
• ANDROID_HOME = /Users/ipla/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
✗ Android license status unknown.
Run
flutter doctor --android-licenses
to accept the SDK licenses.See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 12.4)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.0
[!] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[!] IntelliJ IDEA Ultimate Edition (version 2020.2.3)
• IntelliJ at /Applications/IntelliJ IDEA.app
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.dev/intellij-setup/#installing-the-plugins
[✓] VS Code (version 1.52.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.18.1
[✓] Connected device (1 available)
• ANE LX1 (mobile) • 9WV7N18903002636 • android-arm64 • Android 9 (API 28)
! Error: iPhone di Fabrizio is not connected. Xcode will continue when iPhone di Fabrizio is connected. (code -13)
! Doctor found issues in 3 categories.
The text was updated successfully, but these errors were encountered: