安卓端使用混合webview
根据官方介绍
The WebView is relying on Platform Views to embed the Android’s webview within the Flutter app. By default a Virtual Display based platform view backend is used, this implementation has multiple keyboard. When keyboard input is required we recommend using the Hybrid Composition based platform views implementation. Note that on Android versions prior to Android 10 Hybrid Composition has some performance drawbacks.
WebView依靠 Platform Views将Android的Webview嵌入Flutter应用程序中。默认情况下,使用基于虚拟显示的平台视图后端,此实现具有多个 键盘。当需要键盘输入时,我们建议使用基于混合组合的平台视图实现。请注意,在Android 10 Hybrid Composition之前的Android版本上,存在一些 性能缺陷。
在webview前加上
if (Platform.isAndroid) WebView.platform = SurfaceAndroidWebView();