我無法傳遞作為字串的小部件 webDon。我該如何解決?謝謝


uj5u.com熱心網友回復:
只需洗掉 const。因為您的 displayText 不是 const。試試這個。。
return MaterialApp(
debugShowCheckedModeBanner: false,
home: SafeArea(
child: Scaffold(
body: WebView(
initialUrl: displayText,
javascriptMode: JavascriptMode.unrestricted,
),
),
),
);
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/405646.html
標籤:
