Cirilla Documentations

  1. Home
  2. Docs
  3. Cirilla Documentations
  4. How to
  5. How to enable photo upload/take camera and geolocation on Webview ?

How to enable photo upload/take camera and geolocation on Webview ?

Flutter Webview v4 flow this doc

The official flutter plugin webview_flutter does not support photo upload/take camera and Geolocation. Lucky we found a plugin fork from webview_flutter and support missing features.

We update the source code to you can easy switch plugin in fews steps:

Steps1:

Change plugin dependency in file: cirilla/pubspec.yaml

webview_flutter: ^3.0.4

To

flutter_webview_pro: ^3.0.1+3

Step2:

Change export path in file: cirilla/lib/webview_flutter.dart

export 'package:webview_flutter/webview_flutter.dart';

to

export 'package:flutter_webview_pro/webview_flutter.dart';

Step 3:

Run the app again

If you want support geolocation you need find the WebView and and set geolocationEnabled = true

Video

Was this article helpful to you? Yes No

How can we help?