0

我正在使用flutter_inappwebview并且我已经让它工作了,但我想以编程方式关闭 Web 视图并触发onCloseWindow以发出事件。

我尝试导入dart:html as html尝试使用的东西,html.window.close但我的 linter 似乎不喜欢那样。我得到Error: Not found: 'dart:htmlError: undefined name 窗口on top of a warning:避免在 Flutter Web 插件包之外使用纯 Web 库。`。

如何关闭此窗口以触发onCloseWindow

4

0 回答 0