0

我正在尝试覆盖 openFileChooser/ onShowFileChooser /(在 IOS 上也等效),在 web 视图中使用颤振(我使用了 flutter_webview_pluginwebview_flutter)。

有没有办法只使用颤振来做到这一点?(如果没有,我将不得不为 IOS 和 android 找到解决方案)

4

1 回答 1

1

你可以使用我的插件flutter_inappwebview,它是一个 Flutter 插件,允许你添加内联 WebView 或打开应用内浏览器窗口,并且有很多事件、方法和选项来控制 WebView。

在 Android 上,它实现了openFileChooser/ onShowFileChooser,因此您可以使用<input type="file">or <input type="file" accept="image/*" capture>(请参阅如何为 HTML 输入启用相机的使用,例如<input type="file" accept="image/*" capture>)。

于 2020-06-03T14:41:42.067 回答