flutter_macos_webview icon indicating copy to clipboard operation
flutter_macos_webview copied to clipboard

Provide example of loading a local HTML file

Open nileshtrivedi opened this issue 3 years ago • 2 comments

One of the main reasons for using webviews in desktop apps is to avoid sending sensitive data over the network. For eg, in our open-source project DevToolbox, we want to embed CyberChef while loading it locally.

When I tried using a file:/// URL in the webview.open(), it did not work (probably because of app sandboxing). No errors were shown, but a blank webview opened with the right size.

image

It would be very useful to see an example of a local HTML file from the app bundle/assets loaded in the webview (with Javascript support).

nileshtrivedi avatar Apr 07 '22 07:04 nileshtrivedi

@nileshtrivedi yeah, it would be great to have this option, will look into this

vanelizarov avatar Jun 15 '22 21:06 vanelizarov

Did any developers got a chance to look into this?

nileshtrivedi avatar Sep 29 '22 14:09 nileshtrivedi