Support for WebAssembly (Wasm)
WebAssembly support for Dart and Flutter is under active development, and is currently considered experimental. We hope to have the feature ready to try out later in 2023.
The Flutter and Dart teams are excited to add WebAssembly as a compilation target when building applications for the web.
Compiling Dart to this new target requires WebAssembly Garbage Collection (WasmGC), an upcoming addition to the WebAssembly standard. The Chrome team is actively working on WasmGC. You can see the status of the Garbage Collection proposal—and all other Wasm proposals—on the WebAssembly roadmap.
In the mean time, check out Flutter’s existing support for the web. We are optimistic that existing Flutter web applications will have to do little or no work to support WebAssembly once work is complete.
You might also be interested in this talk by folks on our team: Flutter, Dart, and WasmGC: A new model for web applications.
For the latest updates on this effort, check out flutter.dev/wasm.