Closed EArminjon closed 3 years ago
Probably, you need to use useHybridComposition: true
Android-specific webview option.
Without Android Hybrid Composition enabled, Android WebView has bad performance in Flutter unfortunately.
That's not a limitation of the plugin but on how Flutter PlatformViews work.
Oh, I will test that tomorrow thanks :).
useHybridComposition: true
Fixed my issue, I've add an other package to get the android version if needed (device_info
) base on Platform.isAndroid. (is there a faster solution ?)
Thank you !
is there a faster solution ?
Nope. If you need to get the Platform version, you can try to implement it yourself using Flutter platform channels: https://flutter.dev/docs/development/platform-integration/platform-channels
Environment
Device information:
MI 9T Xiaomi
Description
I would be able to resize InAppWebView without see weird effect. When wrapping InAppWebView with a container and then updating the container size, we can see some black square at the top of the screen... I don't know where they come from.
Please, look the video which i provided.
Steps to reproduce
Images
Each time i clicked the button (so each time the webview is resized we see the black square)
https://user-images.githubusercontent.com/37028599/112539045-cc859880-8db0-11eb-92e8-927ada9814b3.mp4
Stacktrace/Logcat
y