Dart language foundations for Flutter
8 steps · about 3 h 45 min · Beginner
- Tour the shape of a Dart program (guide, Dart (Google), 25 min)
A quick overview of syntax and core ideas before diving into each part.
- Declare variables with var, final and const (guide, Dart (Google), 15 min)
Dart's three declaration styles matter for performance and Flutter rebuilds.
- Use numbers, strings and booleans (guide, Dart (Google), 25 min)
Know the built-in types and string interpolation you will use in every widget.
- Understand sound null safety (guide, Dart (Google), 50 min)
Nullable types shape every Dart API; learn how the compiler reasons about them.
- Build lists, sets and maps (guide, Dart (Google), 20 min)
Collection literals with if and for elements are how Flutter builds widget lists.
- Write functions with named parameters (guide, Dart (Google), 25 min)
Named and required parameters are the calling style of almost every Flutter constructor.
- Model data with classes (guide, Dart (Google), 30 min)
Constructors, getters and instance members are needed for any app state.
- Call async code with Futures (tutorial, Dart (Google), 35 min)
Network and file work in apps is asynchronous; end with async and await.