Skip to main content

Dart tutorial

Begin your Dart learning journey by building an interactive CLI app.

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:

  1. A Dart environment set up—if not, follow the instructions to get the Dart SDK.
  2. Basic familiarity with programming concepts. The tutorial is beginner friendly, but doesn't cover the fundamentals of programming.

Lessons

#
  1. Build your first app
  2. Add interactivity to your app
  3. Write asynchronous code
  4. Organize code with packages and libraries
  5. Define relationships with classes
  6. Handle errors gracefully
  7. Extend your app with enums and extensions
  8. Polish your CLI app
  9. Work with JSON data
  10. Test your app & code
  11. Fetch data from the internet
  12. Add logging for debugging and monitoring