Thuta Learning
BasicProgrammingbeginner

Get Started

Relax. We'll talk through this in plain words — no textbook voice.

There are two ways to get started with Dart. If you want to try it out instantly in your browser, use an online playground; if you want to build a project on your local machine, install the Dart SDK.

dart
// hello.dart
void main() {
  print('Dart setup is ready.');
}

// Terminal command:
// dart run hello.dart

The first part is the code you'd write in a Dart file, and the last two comment lines show the command to run in the terminal. Make sure the file name matches your actual file name.

You should see
Dart setup is ready.

Easy traps

  • If the dart command isn't recognized, the SDK probably isn't installed yet, or the PATH setting hasn't taken effect. Try closing and reopening your terminal.
Get Started | Thuta Learning