Skip to main content

Web platform

Resources for developing Dart web apps.

Dart supports the web as one of its core platforms. For development, the Dart development JavaScript compiler (ddc) provides a quick edit-refresh cycle. For production deployment, you can compile Dart to WebAssembly (Wasm) (dart2wasm) for fast startup and consistent frame execution in modern browsers, or to minified JavaScript (dart2js).

In addition to compilers, the Dart web platform provides core libraries, access to the Document Object Model (DOM) through package:web, and interoperability for calling JavaScript from Dart.

You can also pair Dart web with a higher-level framework. You can build multi-platform apps for web, mobile, and desktop by using Flutter and Flutter web, or use Jaspr to build HTML-based websites. The Dart web platform powers Flutter web, Jaspr, and other Dart web frameworks.

Flutter Gallery app running in a web browser
Flutter Gallery, running in a web browser