Please have flutter work in the web-browser too, via Web Assebbly (WASM/WebAsm).
There will be a lot of work, because the browser is more like a security sandbox than an operating system platform.
To do this. Converting the Flutter desktop target to WASM is going to be an overkill, instead we can create a WebGL/JavaScript backend for the Flutter UI renderer... And then we compile our Dart code to WASM target that utilizes this backend.
I think that might help you https://github.com/Zubnix/skia-wasm-port ;)
Raised there as an issue.
https://github.com/Zubnix/skia-wasm-port/issues/5
Google team seem to be open to helping:
Hey @darmie
But there is no compiler to compile dart to wasm is there ?
@gedw99 non that I know of. It was only a suggestion.
Ok thanks.
I presumed Google would eventually do it.
But flutter for web does not actually need it.
Skia wasm only does.
That's my opinion at least.
On Fri, 20 Jul 2018, 20:02 darmie, notifications@github.com wrote:
@gedw99 https://github.com/gedw99 non that I know of. It was only a
suggestion.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/google/flutter-desktop-embedding/issues/112#issuecomment-406681029,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATuCwjCfyUqN7bxw52jd2sC9Yls3hSFyks5uIhsngaJpZM4VXHiP
.
if the linux port will be using gtk as backend then it may be possible to use broadway to have flutter running in the browser.
Web is out of scope for this project; we're focused specifically on native desktop embedding. If people are interested in trying to build an embedder using Wasm, you could always spin up a new project for it.
Google have announced Hummingbird which brings Flutter to the web. When the code is ready for public consumption, there should be a new github project page to request this. https://medium.com/flutter-io/hummingbird-building-flutter-for-the-web-e687c2a023a8
What does it mean by flutter web. Will be like jupyter notebook?
It's using html canvas, not WASM.
Are we ever gonna see flutter rendering using WASM?
If you have questions about Flutter for Web, or trying your own WASM-based custom embedder, please ask in a more general Flutter forum (see https://flutter.dev/community). The flutter-desktop-embedding project has no relationship with web, as a I said above.
Most helpful comment
Google have announced Hummingbird which brings Flutter to the web. When the code is ready for public consumption, there should be a new github project page to request this. https://medium.com/flutter-io/hummingbird-building-flutter-for-the-web-e687c2a023a8