commit | a54a1f0447979f9a3ea220199eca849ffb214e91 | [log] [tgz] |
---|---|---|
author | Srujan Gaddam <58529443+srujzs@users.noreply.github.com> | Tue Feb 13 12:20:26 2024 -0800 |
committer | GitHub <noreply@github.com> | Tue Feb 13 12:20:26 2024 -0800 |
tree | 4e794866987bf922fba5cfa1d45e586f1cf3d3e0 | |
parent | 6d95059c3c63d30b812c2ad427d159726f97cb07 [diff] |
Publish web 0.5.0 (#170)
Lightweight browser API bindings built around JS static interop.
This package exposes browser APIs. It's generated from the Web IDL definitions and uses recent Dart language features for zero-overhead bindings.
This package is intended to replace dart:html
and similar Dart SDK libraries. It will support access to browser APIs from Dart code compiled to either JavaScript or WebAssembly.
import 'package:web/web.dart'; void main() { final div = document.querySelector('div')!; div.text = 'Text set at ${DateTime.now()}'; }
Based on:
For instructions on re-generating the DOM bindings, see the generator docs.