首页 > 解决方案 > 如何将键盘与 webview_flutter / JavascriptChannels 与 flutter_webview_plugin 一起使用

问题描述

我需要在 Flutter 中使用一个使用键盘的 WebView,但我还需要从 JS 到 Flutter 进行通信。

我已经使用了 webview_flutter 和 flutter_webview_plugin 并且基本上查看了关于此的所有其他问题。

WebviewScaffold(
            allowFileURLs: true,
            withJavascript: true,
            withLocalStorage: true,
            withLocalUrl: true,
            appBar: AppBar(
              title: Text("example"),
            ),
            url: new Uri.dataFromString(data, mimeType: 'text/html')
                .toString(),
          );

我如何能够使用带有 webview_flutter 的键盘或使用 flutter_webview_plugin 从 JS 进行通信?

编辑:解决了这个https://github.com/rinlv/flutter_webview_plugin

标签: androidiosflutterpluginswebview

解决方案


推荐阅读