I can not pass the widget webDon that is a String. How can I solve it?. Thanks
CodePudding user response:
Just remove the const. Because your displayText is not const. Try this one..
return MaterialApp(
debugShowCheckedModeBanner: false,
home: SafeArea(
child: Scaffold(
body: WebView(
initialUrl: displayText,
javascriptMode: JavascriptMode.unrestricted,
),
),
),
);


