Home > Back-end >  Flutter error with flutter webview plugin
Flutter error with flutter webview plugin

Time:11-17

When I put this code in my widget, I get this error

Widget _buildWebView(){
  return const Webview(
    initialUrl: 'https://flutter.dev',
    javascriptMode: JavascriptMode.unrestricted,

  );
}

The named parameter initialUrl isn't defined.

CodePudding user response:

Widget _buildWebView(){
  return const WebView(
    initialUrl: 'https://flutter.dev',
    javascriptMode: JavascriptMode.unrestricted,

  );
}

try this way

  • Related