Dart's browser API bindings built on JS interop, replacing dart:html
open sourceBSD-3-Clausefree
The web package exposes browser APIs to Dart, generated from the Web IDL definitions and built on JS interop with recent Dart language features for zero-overhead bindings. It's replacing dart:html and similar Dart SDK libraries as Dart's long-term web interop solution, and supports browser APIs from Dart code compiled to either JavaScript or WebAssembly. A migration guide covers moving from dart:html.
Problems it solves
- call browser APIs from Dart code compiled to WebAssembly
- migrate a Dart web app off dart:html
- access the DOM from Dart
Features
- browser API bindings generated from Web IDL
- zero-overhead bindings built on JS interop
- works from Dart compiled to JavaScript or WebAssembly
- replaces dart:html, with a migration guide
Alternatives
The same job
These do what web (Dart) does.
- flutter_rust_bridge Call Rust code from Flutter and Dart, with the glue code generated for you
