gpt4 book ai didi

Windows 桌面应用程序中未加载 Flutter Web View

转载 作者:行者123 更新时间:2023-12-04 15:34:06 24 4
gpt4 key购买 nike

Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(),
body: WebView(
initialUrl: "https://www.google.com/",
onWebViewCreated: (WebViewController webViewController) {
_controller.complete(webViewController);
},
),
);
}

这是我的代码片段如何解决这个问题

最佳答案

webview_flutter 插件 doesn't exist for Windows yet , 实际上是不可能写的,因为 PlatformView没有为 Windows 实现支持。 (正如 the documentation 所说:“目前很少有插件真正支持桌面”。)

目前,如果您想在应用程序中使用 Web View ,则需要在单独的窗口中,并且您需要编写一个插件来创建和管理该 Windows 和 Web View 。

关于Windows 桌面应用程序中未加载 Flutter Web View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60375235/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com