Open jimmy-vo opened 1 year ago
Anything new about this issue?
Hello.
First, thanks for your excellent project, it's very valuable !
I have also that need: to get and set some controls: offset of the scene, rotation, .... I use ModelViewer in a web application, and I've seen that javascriptChannels and onWebViewCreated are not implemented in the your package/src/shim/model_viewer_plus_web.dart
Can you at least some visibility if you expect to do it soon or not?
Thanks.
Just bumping this up to see If there is going to be anything related to the model_viewer_plus_web for this issue?
does this mean there is currently no way to pass a message back to dart from model viewer JS? I am wrestling with this now as want to call dart code when annotations are pressed
Looking into this further WebViewController is required for this to have JS > dart comms but only exists on mobile. The package therefore uses HtmlElementView instead for web but no way to use JS channels with it :/ Looks like it would take a refactoring of the web implementation to use something else to support this (maybe dart JS interop somehow?).
Describe the bug onWebViewCreated doesn't get called. I didn't verify this on mobile platforms
To reproduce Steps to reproduce the behavior:
webview_flutter: 3.0.4
topubspec.yaml
Expected behavior onWebViewCreated gets called on the web
Desktop (please complete the following information):
Additional context I am not sure if I understand #71, but the changes doesn't seem to do anything with that parameter on the web platform?