android - 如何将键盘与 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 进行通信?
解决方案
推荐阅读
- amazon-web-services - 如何仅使用角色或用户 ARN 而不是 accessKeyId 和 secretAccessKey 对 AWS 服务进行身份验证?
- android - 是否可以使用方法通道在构建并包含为“aar”的 android 应用程序和颤振模块之间进行通信?
- java - 网页元素解析
- java - 如何将Word转换为设定的数字
- android - 在android studio中获取设备相机应用的预览数据
- python - 当我提到他们时,我是否可以使用 discord.py 让我的机器人 DM 有人?
- javascript - Javascript从网络响应中获取值
- google-apps-script - 高保真 UI 原型到基于谷歌网络的应用程序
- scala - 在 scala (2.12.8) 中使用案例类时的 Apache flink (1.9.1) 运行时异常
- html - 是否可以通过在 URL 中使用变量来动态更改图像(即背景)?