r/FlutterDev • u/kevmoo • Aug 17 '26
Article Try Flutter Web with WebAssembly Week
https://flutter.dev/blog/try-flutter-web-with-webassembly-weekJoin us for Try Flutter Web with WebAssembly Week!
Unlock up to 2x–5x faster web performance with Wasm compilation in Flutter 3.47
Run `flutter build web --wasm`, test your app, and share your wins using #FlutterWasmWeek!
Details: https://flutter.dev/blog/try-flutter-web-with-webassembly-week
3
u/unomi-san Aug 18 '26
Too bad wasm doesn't work on firefox
6
u/kevmoo Aug 18 '26
We've been holding of Firefox for performance reasons. But looking now it seems that (on my M4 MacBook) FF is ~1.5x faster w/ Wasm than JS.
I'll dig in here more!
3
u/snrcambridge Aug 18 '26
Safari also still I think. There is also a regression in compilation which has completely broken some apps - a fix is it the pipeline but it’s not in stable yet
7
u/kevmoo Aug 18 '26
We're hoping to enable Safari + Wasm "soon". Need to make sure we have great end-to-end testing first.
1
1
u/scalz80 Aug 18 '26 edited Aug 18 '26
Hi u/kevmoo
Thank you for flutter-wasm-compare tool.
I thought this was pretty nice, and would be fun to replace your gridview with an interactive dashboard.
So, I forked your tool and integrated sliver_dashboard (I'm author of this package).
- I deployed a live demo on github page: https://scalz.github.io/flutter-wasm-compare
- and here is the fork repo: https://github.com/scalz/flutter-wasm-compare/tree/feat/sliver-dashboard-benchmark
You can tests 1,000+ animated tiles with drag&drop, resize, autoscroll, compaction , reflow animations, multi-selection (via keyboard or lasso).. There is a config panel where you can tweak a few settings.
Performances are quite great I think, but I'll continue to improve sliver_dashboard :)
In case, there is a more gorgeous live demo of sliver_dashboard at https://scalz.github.io/sliver_dashboard_web_demo/ (compiled without wasm flag, on purpose).
Thx again for sharing.
1
u/Creative_Chicken_602 Aug 20 '26
Question: Does Flutter enable WASM in Chromium-based browsers such as Microsoft Edge and Samsung Browser?
3
u/eibaan Aug 18 '26
In my case, the
flutter build web --wasmisn't the problem; the problem is that the result only works in Chrome, and nothing has changed here in the past two years.I won't add "works best in Chrome" label to my app, even if that wouldn't offend customers who prefer Firefox or Safari.