简体   繁体   中英

I have a webpage, I want to retrieve data from that webpage to my flutter application using webview

Using flutter webview how can I pick callback functions from the webpage.

Get the WebviewController from the onWebviewCreated callback on the Webview. And then use the evaluateJavascript method of the webview controller:

var result = await _webviewController?.evaluateJavascript("js_code_here");

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