Reputation: 1
I'm trying to override the openFileChooser/onShowFileChooser/(equivalent on IOS as well), using flutter while inside a webview (i've used flutter_webview_plugin and webview_flutter).
Is there a way to do this using only flutter? (if not, i'll have to find a solution for both IOS and android)
Upvotes: 0
Views: 2429
Reputation: 3429
You can use my plugin flutter_inappwebview, which is a Flutter plugin that allows you to add inline WebViews or open an in-app browser window and has a lot of events, methods, and options to control WebViews.
On Android, it implements the openFileChooser
/onShowFileChooser
, so you can use <input type="file">
or <input type="file" accept="image/*" capture>
(see How to enable the usage of camera for HTML inputs such as <input type="file" accept="image/*" capture>
).
Upvotes: 2