0PricingLogin
Dart Academy · Lesson

Anatomy of pubspec.yaml

Declare metadata, dependencies, and constraints.

Meet pubspec.yaml

Every Dart project has a pubspec.yaml at its root. It is the manifest that describes your project and lists everything it depends on. 📄

Why YAML

Dart uses YAML here because it is human-readable: indentation shows structure, and you write keys followed by a colon and a value. No braces needed.

name: my_app
version: 1.0.0

All lessons in this course

  1. Anatomy of pubspec.yaml
  2. Adding Dependencies With dart pub
  3. Imports, Exports, and Libraries
  4. Version Constraints and the Lockfile
← Back to Dart Academy