commit | d17fdd2b6ddec289920d02a3df92c3368f0a0e50 | [log] [tgz] |
---|---|---|
author | Devon Carew <devoncarew@google.com> | Sun Jan 14 11:25:19 2024 -0800 |
committer | GitHub <noreply@github.com> | Sun Jan 14 11:25:19 2024 -0800 |
tree | e35fd1ed5c931d0dd3d1c6ac84e99fee913fe86b | |
parent | 42e86cab046475f3afaacd7d0c882fc483135d39 [diff] |
contribute a fix_data.yaml file to enable 'dart fix' renames (#141) contribute a fix_data.yaml file to enable 'dart fix' renames
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.
The APIs in this package are still fairly provisional and could change rapidly. We'll continue to use semantic versioning as we evolve the APIs.
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.