flutter-webview-windows icon indicating copy to clipboard operation
flutter-webview-windows copied to clipboard

add a way to load and manipulate an off-screen web page

Open insinfo opened this issue 2 years ago • 3 comments

I need a way to load this web page https://spe.riodasostras.rj.gov.br/iptu/guia.aspx off the screen and fill and send the form and get the result page and render inside the Scaffold.

Is there any way to do this with flutter-webview-windows ?

image

image

insinfo avatar Jan 18 '22 23:01 insinfo

This should be possible by using ExecuteScript and the message-passing related methods of WebviewController. However, from an architecture point of view, I’d delegate such functionality to some backend app.

jnschulze avatar Jan 19 '22 06:01 jnschulze

I would like to do this in the backend, but I haven't found a lib to work with off-screen webview with dart, does this lib work with dart-vm? since my app backend is written in dart, I would like to access the DOM and execute events as in the DotNetBrowser lib https://dotnetbrowser-support.teamdev.com/docs/guides/gs/dom.html#dom.

How does "message-passing" work? Does this allow passing mouse and keyboard events to the webview to eg click a button and or fill in an input ?

insinfo avatar Jan 20 '22 14:01 insinfo

How does "message-passing" work? Does this allow passing mouse and keyboard events to the webview to eg click a button and or fill in an input ?

No, it’s just about passing JSON-objects from Dart to JS and vice versa.

jnschulze avatar Jan 22 '22 08:01 jnschulze