Issue with webview in flutter getting an error
[ERROR:flutter/shell/common/shell.cc(184)] Dart Error: Unhandled exception:
PlatformException(error, Trying to create a platform view of unregistered type: plugins.flutter.io/webview, null)
Trying to implement the webview
Android-only settings: forceWebView – If set to null or false , the URL is opened in the device's default browser; otherwise, the URL is launched in a WebView. enableJavaScript – If set to true , JavaScript is enabled in WebView.
I had the same problem. But I did these steps, and it helped me:
<uses-permission android:name="android.permission.INTERNET" />
to the Android manifest:
android/app/src/main/AndroidManifest.xml
right above application tag.
<key>io.flutter.embedded_views_preview</key>
<string>YES</string>
in ios/Runner/Info.plist
http://www
)flutter clean
, delete build folder.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With