Welcome to the Dart tutorial! This tutorial teaches you how to write Dart code by building an interactive command-line (CLI) application.
You'll start from the very beginning: creating a blank Dart application. By the end, you'll have built an app that demonstrates the essential features of Dart development—variables, functions, classes, async programming, testing, and more!
Before you begin
#This tutorial assumes that you have:
- A Dart environment set up—if not, follow the instructions to get the Dart SDK.
- Basic familiarity with programming concepts. The tutorial is beginner friendly, but doesn't cover the fundamentals of programming.
Lessons
#- Build your first app
- Add interactivity to your app
- Write asynchronous code
- Organize code with packages and libraries
- Define classes and objects
- Structure apps with inheritance
- Handle errors gracefully
- Extend your app with enums and extensions
- Polish your CLI app
- Work with JSON data
- Test your app & code
- Fetch data from the internet
- Add logging for debugging and monitoring
Unless stated otherwise, the documentation on this site reflects Dart 3.14.0. Page last updated on 2026-01-21. View source or report an issue.