flutter webview net::ERR_NAME_NOT_RESOLVED

Viewed 3594

flutter webview net::ERR_NAME_NOT_RESOLVED please note that the problem shown with the release not the debug

 WebView(
  initialUrl: widget.url,
  onPageFinished: (data){
    updateLoadingState(false);
  },
  javascriptMode: JavascriptMode.unrestricted,
  onWebViewCreated: (webViewController){
    _webViewController = webViewController;
  },
)
1 Answers

This error usually occurs when you are testing with the emulator or when your internet connection is poor. If you are running your app on an emulator and you encounter this problem, trying running the app on a real device. If the error persists, add internet permission to your android manifest.

Related