Flutter 从对Flatter中WebView小部件的响应中注入HTML正文

Flutter 从对Flatter中WebView小部件的响应中注入HTML正文,flutter,webview,webview-flutter,Flutter,Webview,Webview Flutter,我正在使用插件在我的应用程序中调用Webview。我有一个用例,在这个用例中,我收到一个作为HTML的响应体 <html> <body onload='document.forms["form"].submit()'> <form name='form' action='siteLinkWidget' method='post'></form> </body> </html> 上面的小部件在

我正在使用插件在我的应用程序中调用Webview。我有一个用例,在这个用例中,我收到一个作为HTML的响应体

<html>
 <body onload='document.forms["form"].submit()'>
    <form name='form' action='siteLinkWidget' method='post'></form>
 </body>
</html>
上面的小部件在控制台上显示一个没有错误消息的空白屏幕。虽然我有一些日志,但请检查以下内容:

V/ViewRootImpl(11541):指定的消息队列同步屏障令牌尚未发布或已删除

E/InputMethodManager(11541):b/117267690:无法获取预期displayId=82的回退IMM实际IMM#displayId=0视图=io.flatter.plugins.WebViewFlatter.InputWareWebView{19f7037 VFEDHVC……..0,0-10801992}

WebView(
    // initialUrl: 'about:blank', // Commented out as it is not a required attribute
    debuggingEnabled: true,
    onWebViewCreated: (WebViewController webViewController) async {
      _controller = webViewController;
      _controller.evaluateJavascript("document.write('<html>')"
          "document.write( '<body onload=\'document.forms[\"form\"].submit()\'>');"
          "document.write( '<form name=\'form\' action=\'siteLinkWidget\' method=\'post\'></form>' );"
           "document.write( '</body></html>' );");
      },
      javascriptMode: JavascriptMode.unrestricted,
),