launchInWebViewWithoutJavaScript function
Launch Uri in InAppWebView
withoud javascript
.
Implementation
Future<void> launchInWebViewWithoutJavaScript(Uri url) async {
if (!await launchUrl(
url,
mode: LaunchMode.inAppWebView,
webViewConfiguration: const WebViewConfiguration(
enableJavaScript: false,
),
)) {
throw 'Could not launch $url';
}
}