简体   繁体   中英

Flutter : Stop or Cancel or Abort a page loading in webview

I would like to know to stop or cancel or abort a page loading in the webview of Flutter. The controller does not seem to have stop() or abort() method.

Thank you.

尝试从控制器加载空白页面以取消或停止先前的加载:

_webViewController.loadUrl("about:blank");

You could use javascript:

webViewController.runJavaScript('window.stop();')

package: webview_flutter: ^4.0.1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM