English 中文(简体)
采用冲洗 AppWebView,我如何从方案上结束网络观点?
原标题:Using flutter_inAppWebView, how do I programmatically close the web view?

I m using flutter_inappwebview, I ve got it work,但我希望在方案上结束网站观点,并启动onCloseWindow,以便发送活动。

I m试图进口诸如dart:html as html等物品,试图使用html.window.close,但我的 linter don t似乎也一样。 warning:无 避免使用网络专用图书馆 冲破网皮。

我如何关闭这一窗口以启动<条码>。

问题回答

我的工作是:

Controller.evaluateJavascript(资料来源:窗口.close();

然而,触发<代码>onCloseWindow并不关闭网站概览,而是使用<代码>Nagivator.pop(context),因为我有一页纸张,将<代码>InAppWeb贴在体内。





相关问题
Flutter App cannot be installed on Android TV

I m building a Flutter app that should support Android TV and Mobile devices. Despite Google Play shows that it is supported, I cannot install app on my MiBox device. While trying to install it, both ...

Moving the icon button to the right causes rendering issues

I am trying to align the icon button to the right of the Text field, I tried the row which made the icon button not centered vertically and now I am trying out the Stack widget. Here is my code - ...

热门标签