explaingit

dart-lang/sdk

11,142DartAudience · developerComplexity · 3/5Setup · moderate

TLDR

The official SDK for the Dart programming language, which powers Flutter apps and can compile to native code, JavaScript, or WebAssembly for mobile, desktop, server, and web targets.

Mindmap

mindmap
  root((dart sdk))
    What it does
      Dart language runtime
      Multi-target compilation
      Flutter support
    Tech stack
      Dart
      WebAssembly
      JavaScript
    Use cases
      Flutter development
      Native apps
      Web compilation
    Audience
      Dart developers
      Flutter developers
      App builders
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Build a Flutter app in Dart that runs on iOS, Android, desktop, and the web from a single codebase.

USE CASE 2

Write a command-line tool in Dart that compiles to a fast native binary with no runtime required.

USE CASE 3

Deploy a server-side Dart app that uses AOT compilation for production performance.

Tech stack

DartWebAssemblyJavaScript

Getting it running

Difficulty · moderate Time to first run · 30min

For Flutter development, install the Flutter SDK which bundles Dart, the standalone Dart SDK is for server or CLI use.

In plain English

This is the official repository for the Dart SDK, the complete set of tools needed to develop and run programs written in the Dart programming language. Dart is a programming language created by Google, most widely known as the language that powers Flutter, a framework for building apps that run on Android, iOS, desktop, and the web from a single codebase. Dart is a statically typed language, meaning it checks for type errors before your code runs. It includes modern features like null safety, which helps prevent a common category of programming bugs where a variable is used before it has been assigned a value. The README describes the language as approachable and concise while supporting a wide range of compilation targets. One of Dart's notable features is flexibility in how code is compiled. For mobile, desktop, and server targets, it can run programs using a virtual machine with just-in-time compilation during development, then produce native machine code with ahead-of-time compilation for production. For the web, it compiles to JavaScript or WebAssembly. This is the reason a Flutter app can run as a native app on a phone and also in a web browser. Development with Dart includes a hot reload feature that shows code changes immediately in a running app without a full restart. A DevTools suite is also available for debugging and diagnosing performance issues. The SDK is free and open source. The Dart package ecosystem is hosted at pub.dev, and the language documentation is at dart.dev. Future plans for the language are tracked in a shared roadmap with Flutter.

Copy-paste prompts

Prompt 1
Using the Dart SDK, help me set up a simple command-line app, compile it to a native binary, and run it on macOS.
Prompt 2
Show me how to write a null-safe Dart function that fetches JSON from an API and returns a typed data class.
Prompt 3
Help me understand when to use Dart's JIT compilation during development vs AOT compilation for production.
Prompt 4
Walk me through setting up Dart DevTools to profile memory usage in a running Flutter app.
Open on GitHub → Explain another repo

← dart-lang on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.