2015-05-18 23:30:56 +00:00
|
|
|
# Dart
|
|
|
|
|
2023-12-18 15:30:58 +00:00
|
|
|
## An approachable, portable, and productive language for high-quality apps on any platform
|
2019-05-21 19:21:51 +00:00
|
|
|
|
|
|
|
Dart is:
|
|
|
|
|
2023-12-18 15:30:58 +00:00
|
|
|
* **Approachable**:
|
|
|
|
Develop with a strongly typed programming language that is consistent,
|
|
|
|
concise, and offers modern language features like null safety and patterns.
|
|
|
|
|
|
|
|
* **Portable**:
|
|
|
|
Compile to ARM, x64, or RISC-V machine code for mobile, desktop, and backend.
|
|
|
|
Compile to JavaScript or WebAssembly for the web.
|
|
|
|
|
2019-05-21 19:21:51 +00:00
|
|
|
* **Productive**:
|
2021-01-11 23:51:20 +00:00
|
|
|
Make changes iteratively: use hot reload to see the result instantly in your running app.
|
2023-12-18 15:30:58 +00:00
|
|
|
Diagnose app issues using [DevTools](https://dart.dev/tools/dart-devtools).
|
2019-05-21 19:21:51 +00:00
|
|
|
|
2020-02-06 10:27:52 +00:00
|
|
|
Dart's flexible compiler technology lets you run Dart code in different ways,
|
2019-05-21 19:21:51 +00:00
|
|
|
depending on your target platform and goals:
|
|
|
|
|
|
|
|
* **Dart Native**: For programs targeting devices (mobile, desktop, server, and more),
|
|
|
|
Dart Native includes both a Dart VM with JIT (just-in-time) compilation and an
|
|
|
|
AOT (ahead-of-time) compiler for producing machine code.
|
2023-12-18 15:30:58 +00:00
|
|
|
|
2019-05-21 19:21:51 +00:00
|
|
|
* **Dart Web**: For programs targeting the web, Dart Web includes both a development time
|
|
|
|
compiler (dartdevc) and a production time compiler (dart2js).
|
|
|
|
|
2020-02-21 12:45:19 +00:00
|
|
|
![Dart platforms illustration](docs/assets/Dart-platforms.svg)
|
2019-05-21 19:21:51 +00:00
|
|
|
|
|
|
|
## License & patents
|
|
|
|
|
|
|
|
Dart is free and open source.
|
|
|
|
|
2019-08-16 12:24:02 +00:00
|
|
|
See [LICENSE][license] and [PATENT_GRANT][patent_grant].
|
2015-05-18 23:30:56 +00:00
|
|
|
|
|
|
|
## Using Dart
|
|
|
|
|
2020-08-10 20:56:14 +00:00
|
|
|
Visit [dart.dev][website] to learn more about the
|
2021-01-11 23:51:20 +00:00
|
|
|
[language][lang], [tools][tools], and to find
|
|
|
|
[codelabs][codelabs].
|
2015-05-18 23:30:56 +00:00
|
|
|
|
2019-05-21 19:21:51 +00:00
|
|
|
Browse [pub.dev][pubsite] for more packages and libraries contributed
|
2015-05-18 23:30:56 +00:00
|
|
|
by the community and the Dart team.
|
|
|
|
|
2021-01-11 23:51:20 +00:00
|
|
|
Our API reference documentation is published at [api.dart.dev](https://api.dart.dev),
|
|
|
|
based on the stable release. (We also publish docs from our
|
|
|
|
[beta](https://api.dart.dev/beta) and [dev](https://api.dart.dev/dev) channels,
|
|
|
|
as well as from the [primary development branch](https://api.dart.dev/be)).
|
|
|
|
|
2015-08-05 15:05:07 +00:00
|
|
|
## Building Dart
|
|
|
|
|
2017-01-03 09:36:33 +00:00
|
|
|
If you want to build Dart yourself, here is a guide to
|
2024-05-16 18:19:40 +00:00
|
|
|
[getting the source, preparing your machine to build the SDK, and building][building].
|
2015-08-05 15:05:07 +00:00
|
|
|
|
2024-05-16 18:19:40 +00:00
|
|
|
There are more documents in our repo at [docs](https://github.com/dart-lang/sdk/tree/main/docs).
|
2015-08-05 15:05:07 +00:00
|
|
|
|
2015-05-18 23:30:56 +00:00
|
|
|
## Contributing to Dart
|
|
|
|
|
|
|
|
The easiest way to contribute to Dart is to [file issues][dartbug].
|
|
|
|
|
|
|
|
You can also contribute patches, as described in [Contributing][contrib].
|
|
|
|
|
2024-04-10 16:06:53 +00:00
|
|
|
## Roadmap
|
|
|
|
|
|
|
|
Future plans for Dart are included in the combined Dart and Flutter
|
|
|
|
[roadmap][roadmap] on the Flutter wiki.
|
|
|
|
|
2024-05-16 18:19:40 +00:00
|
|
|
[building]: https://github.com/dart-lang/sdk/blob/main/docs/Building.md
|
2021-01-11 23:51:20 +00:00
|
|
|
[codelabs]: https://dart.dev/codelabs
|
2021-09-10 08:02:49 +00:00
|
|
|
[contrib]: https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md
|
2024-05-16 18:19:40 +00:00
|
|
|
[dartbug]: http://dartbug.com
|
|
|
|
[lang]: https://dart.dev/guides/language/language-tour
|
|
|
|
[license]: https://github.com/dart-lang/sdk/blob/main/LICENSE
|
2021-09-10 08:02:49 +00:00
|
|
|
[patent_grant]: https://github.com/dart-lang/sdk/blob/main/PATENT_GRANT
|
2024-05-16 18:19:40 +00:00
|
|
|
[pubsite]: https://pub.dev
|
|
|
|
[repo]: https://github.com/dart-lang/sdk
|
2024-04-10 16:06:53 +00:00
|
|
|
[roadmap]: https://github.com/flutter/flutter/wiki/Roadmap
|
2024-05-16 18:19:40 +00:00
|
|
|
[tools]: https://dart.dev/tools
|
|
|
|
[website]: https://dart.dev
|