Skip to content

Commit 19ade44

Browse files
Merge branch 'main' into patch-3
2 parents 51b9d7f + 0a0cb8a commit 19ade44

File tree

1 file changed

+29
-31
lines changed

1 file changed

+29
-31
lines changed

src/content/web/libraries.md

+29-31
Original file line numberDiff line numberDiff line change
@@ -4,46 +4,44 @@ short-title: Web libraries
44
description: Libraries and packages that can help you write Dart web apps.
55
---
66

7-
The [Dart SDK][] contains [dart:html][] and other libraries
8-
that provide low-level web APIs.
9-
You can supplement or replace these APIs using web packages.
7+
Dart provides several packages and libraries to support
8+
web app development, the recommended option being [`package:web`][web].
9+
The [Dart SDK][] also contains other libraries that provide low-level web APIs.
1010

11-
[Dart SDK]: /tools/sdk
12-
[dart:html]: {{site.dart-api}}/{{site.sdkInfo.channel}}/dart-html/dart-html-library.html
11+
## Web solutions
1312

13+
[Migrate to `package:web`][migrate]
14+
: Learn how to migrate to `package:web`
15+
from Dart's previous web library solutions, like [`dart:html`][html].
1416

15-
## SDK libraries
17+
[`package:web` API reference][web]
18+
: Dart's recommended web interop solution `package:web` exposes browser
19+
APIs with lightweight bindings built around static JS interop.
1620

17-
The Dart SDK contains dart:html and other libraries
18-
that provide low-level web APIs.
21+
[JavaScript interoperability documentation][js]
22+
: Learn how to interact with existing JavaScript or TypeScript libraries
23+
using Dart's JS interop support.
1924

20-
[Build a web app with Dart](/web/get-started)
21-
: A quick overview of how to build, run, and debug a web app with Dart.
22-
23-
[The dart:html documentation](/libraries/dart-html)
24-
: An example-driven tour of using the dart:html library.
25-
Topics include manipulating the DOM programmatically,
26-
making HTTP requests, and using WebSockets.
27-
28-
[dart:html API reference][dart:html]
29-
: Complete reference documentation for the dart:html library.
25+
[`dart:js_interop` API reference][js_interop]
26+
: Dart's web library `dart:js_interop` provides all the necessary members to
27+
facilitate sound interop between JavaScript and Dart types.
3028

29+
[Flutter web support][flutter-web]
30+
: The [Flutter framework][flutter] supports web development with Dart,
31+
in addition to mobile, desktop, and embedded device support.
3132

32-
## Web packages
33-
34-
Many [packages](/guides/packages) support web development with Dart.
35-
In particular, the [Flutter framework][flutter] has [web support][flutter-web],
36-
in addition to mobile, desktop, and embedded device support.
33+
[Build a web app with Dart](/web/get-started)
34+
: A quick overview of how to build, run, and debug a web app with Dart.
3735

38-
To find more libraries that support writing web apps,
36+
To find other libraries that support the web platform,
3937
search pub.dev for [web packages][].
4038

41-
Your Dart code can also interact with existing
42-
JavaScript or TypeScript libraries
43-
using Dart's [JavaScript interoperability][] support.
44-
39+
[web]: {{site.pub-pkg}}/web
40+
[Dart SDK]: {{site.dart-api}}/{{site.sdkInfo.channel}}
41+
[migrate]: /interop/js-interop/package-web
42+
[js_interop]: {{site.dart-api}}/{{site.sdkInfo.channel}}/dart-js_interop/dart-js_interop-library.html
43+
[flutter-web]: {{site.flutter-docs}}/platform-integration/web
4544
[flutter]: {{site.flutter}}
46-
[flutter-web]: {{site.flutter}}/web
47-
[js]: {{site.pub-pkg}}/js
48-
[JavaScript interoperability]: /interop/js-interop
4945
[web packages]: {{site.pub}}/web
46+
[html]: /libraries/dart-html
47+
[js]: /interop/js-interop

0 commit comments

Comments
 (0)