Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature]: WebAssembly (Wasm) Support #1105

Open
BrunoMiguens opened this issue Jun 1, 2024 · 7 comments
Open

[feature]: WebAssembly (Wasm) Support #1105

BrunoMiguens opened this issue Jun 1, 2024 · 7 comments
Labels
p1 Highest priority issue

Comments

@BrunoMiguens
Copy link

Is your feature request related to a problem? Please describe.

Currently web_navigation_history.dart uses dart:html which is nt supported by Wasm and should be migrated to package:web - Reference

Describe the solution you would like

Replace the usage of dart:html to use the new web library and support the latest stable Wasm.
As far as I could check, it should be a matter of changing the _history.state usage, however, I'm not sure if that is all.

Additional Context

Flutter 3.22

Support for Wasm is now stable!

WebAssembly support for Flutter web is available on the Flutter stable channel.

Dart's next-gen web interop is now stable!

Migrate your packages to package:web and dart:js_interop to make them compatible with Wasm. Read the Requires JS-interop section to learn more.

@FilledStacks FilledStacks added the p1 Highest priority issue label Jun 17, 2024
@FilledStacks
Copy link
Contributor

Thanks @BrunoMiguens for filing this, it's a very requested feature that we'll be adding in.

We're working on some web apps for clients that also want WASM so it'll be in the up next column soon.

@BrunoMiguens
Copy link
Author

Thanks, that's is great to know as it looks like there's not a lot of work, from a very high level perspective.

@FilledStacks
Copy link
Contributor

Yup, lots to do there.

I'll be dedicating a few days to it soon.

@Schefferbird
Copy link
Contributor

@FilledStacks
Upgrading Get dependency to 4.6.6 solves issues with Stacked Services, where dart:html is removed. My present hiccup when trying to build with --wasm flag.

@FilledStacks
Copy link
Contributor

Awesome! Thanks @Schefferbird we'll do that and push and update to the services now

@FilledStacks
Copy link
Contributor

Try version 1.5.1 of Stacked services and see if you can compile to WASM @BrunoMiguens

@SHuygh
Copy link

SHuygh commented Dec 20, 2024

@FilledStacks I have tried compiling for wasm with version 1.5.1 and still getting errors on the Get dependency.

Apparently Get 4.6.6 still uses dart:html, their release candidate no longer has this issue, but this is not stable yet and is not compatible with stacked services atm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p1 Highest priority issue
Projects
None yet
Development

No branches or pull requests

4 participants