Overview: Web Libraries
Many Dart libraries have support for web app development. We recommend using the AngularDart framework, but you also have lower level options.
Here are some projects on GitHub that use package:js:
- Dart wrapper library for Firebase.
- Example includes lib/quill.dart, which is generated from Quill.js.
- Dart API for Chart.js.
If you can’t or don’t want to use a framework, you can use Dart’s low-level HTML APIs. Here’s some documentation to help you get started:
- Low-level HTML tutorials
- An overview of DOM, CSS, and HTML concepts, with information on how to include a Dart script in an HTML page and how to add and remove elements from a web page. These tutorials feature interactive examples in DartPad.
- Tour of the dart:html library
- An example-driven tour of using the dart:html library. Topics include manipulating the DOM programmatically, making HTTP requests, and using WebSockets.
- dart:html API reference
- Complete reference documentation for the dart:html library.
Once you’re ready to develop complex apps that support features such as event handling and dependency injection, we recommend using AngularDart.
To find more libraries that support writing web apps, look at web packages on pub.dartlang.org.
Also see the FAQ.