← Map
Dart Island · Level 1
Learn Flutter

Six variable games

Variables are the first building blocks of Dart. Each challenge teaches a different way to think about them: matching values, choosing types, naming variables, and writing declarations.
Complete the six mini-games to unlock the next lesson.
What is a variable?

A variable is a named box that stores a value so you can use it later. In Dart, you declare a variable with a type, a name, and a value:

String heroName = "Ada";
int age = 28;
bool isReady = true;
  • String → text, always wrapped in quotes (e.g. "Ada")
  • int → whole numbers, no quotes (e.g. 28)
  • bool → only true or false

Now try the six mini-games below to practice matching, naming, and writing variables yourself.

Progress
0 / 6 mini-games solved
Stage 1

Shape sorter

Match each value to the right variable slot.

Values
Slots
Island map