@@ -4,46 +4,44 @@ short-title: Web libraries
4
4
description : Libraries and packages that can help you write Dart web apps.
5
5
---
6
6
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 .
10
10
11
- [ Dart SDK ] : /tools/sdk
12
- [ dart:html ] : {{site.dart-api}}/{{site.sdkInfo.channel}}/dart-html/dart-html-library.html
11
+ ## Web solutions
13
12
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 ] .
14
16
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.
16
20
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.
19
24
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.
30
28
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.
31
32
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.
37
35
38
- To find more libraries that support writing web apps,
36
+ To find other libraries that support the web platform,
39
37
search pub.dev for [ web packages] [ ] .
40
38
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
45
44
[ flutter ] : {{site.flutter}}
46
- [ flutter-web ] : {{site.flutter}}/web
47
- [ js ] : {{site.pub-pkg}}/js
48
- [ JavaScript interoperability ] : /interop/js-interop
49
45
[ web packages ] : {{site.pub}}/web
46
+ [ html ] : /libraries/dart-html
47
+ [ js ] : /interop/js-interop
0 commit comments