Here I have added my webview code in bellow. Website perfectly loaded but i couldn't camera & file chooser option to upload server.
WebView( initialUrl: '',///url
javascriptMode: JavascriptMode.unrestricted,
onWebViewCreated: (WebViewController webViewController) async {
_controller.complete(webViewController);
},
onProgress: (value) {
if (value == 100) {
isPageLoading = false;
}
setState(() {});
},
navigationDelegate: (NavigationRequest request) {
print('RequestedUrl=>${request.url}');
if (request.url.contains(
}
return NavigationDecision.navigate;
},
onPageStarted: (String url) async {
},
onPageFinished: (String url) {
print('Page finished loading: $url');
//readJS();
},
gestureNavigationEnabled: true,
javascriptChannels: <JavascriptChannel>{
_toasterJavascriptChannel(context),
},
);
I have used flutter_inappwebveiew
Make sure you have added permission for Uploads.
In Manifest