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