我已经在flutter中实现了webView,但是它没有打开我在服务器上做错的php网站。
我是陌生的,尝试使用webview将我的网站网页集成到我的应用程序中,但是没有运气。
Widget build(BuildContext context) {
// TODO: implement build
return WebviewScaffold(
appBar: AppBar(iconTheme:IconThemeData(color: Colors.white),title: Text("Intake Form",style:new TextStyle(color: Colors.white,fontWeight: FontWeight.bold)),backgroundColor:Colors.indigoAccent,automaticallyImplyLeading: false),
url: url,
//url: "http://61.246.39.79:8080/",
withJavascript: true,
supportMultipleWindows: true,
withLocalStorage: true,
allowFileURLs: true,
enableAppScheme: true,
appCacheEnabled: true,
hidden: false,
scrollBar: true,
geolocationEnabled: false,
clearCookies: true,
// usesCleartextTraffic="true"
);
}
Run Code Online (Sandbox Code Playgroud)
我期望输出为正在运行的webview,但会引发错误。