This doc for Android only, the iOS app default enable
Steps 1:
Import package in: cirilla/pubspec.yaml
flutter_webview_plus:
path: ./packages/flutter_webview_plus
Steps 2:
Open file: cirilla/lib/widgets/cirilla_webview.dart
Add import:
import 'package:flutter_webview_plus/flutter_webview_plus.dart';
Add mixin:
FlutterWebViewPlusMixin
Example:
![](https://appcheap.io/wp-content/uploads/2023/07/Screenshot-2023-07-11-at-11.37.40.png)
File Upload
Add source code:
// Support upload file on Webview for Android
(controller.platform as AndroidWebViewController).setOnShowFileSelector(
(params) async {
return await androidFilePicker(context);
},
);
Example:
![](https://appcheap.io/wp-content/uploads/2023/07/Screenshot-2023-07-15-at-16.18.35-874x1024.png)
Ask for geolocation permission
Add source code:
// Support geolocation on Webview for Android
(controller.platform as AndroidWebViewController).setGeolocationPermissionsPromptCallbacks(
onShowPrompt: (request) {
return geolocationPermissionsResponse();
},
);
Example:
![](https://appcheap.io/wp-content/uploads/2023/07/Screenshot-2023-07-11-at-11.35.29-1024x1009.png)