Get the Dart

Get the Dart SDK

The Dart SDK has the libraries and command-line tools that you need to develop Dart web, command-line, and server apps. If you’re developing only mobile apps, then you don’t need the Dart SDK; just install Flutter.

To learn about other tools you can use for Dart development, see the Dart tools page. To learn about what’s in the SDK, see Dart SDK overview.

Install the Dart SDK

As the following instructions show, you can use a package manager to easily install and update the Dart SDK. Alternatively, you can build the SDK from source or download the SDK as a zip file.

Choose one of these options:

Install using Chocolatey

To use Chocolatey to install a stable release of the Dart SDK, run this command:

C:\> choco install dart-sdk

To install a dev release, run this command:

C:\> choco install dart-sdk --pre

To upgrade the Dart SDK, run this command (add --pre to upgrade the dev release):

C:\> choco upgrade dart-sdk

Install using a setup wizard

Alternatively, use the community-supported Dart SDK installer for Windows. You can use the wizard to install stable or dev versions of the Dart SDK.

Windows Dart Setup Wizard

About release channels and version strings

The Dart SDK has two release channels:

  • stable channel: stable releases, updated no more frequently than every 6 weeks; currently 2.6.1.
  • dev channel: prereleases, usually updated 1/week; currently 2.7.0-dev.0.0.

Stable channel releases of the Dart SDK have version strings like 1.24.3 and 2.1.0. They consist of dot-separated integers, with no hyphens or letters.

Dev channel releases of the Dart SDK (prereleases) have additional characters, starting with a hyphen (-). For example, Dart 2 prereleases have version numbers starting with 2.0.0-dev such as 2.0.0-dev.69.5.

You can get stable and dev channel releases using the instructions above, or you can download the SDK as a zip file.

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *