Getting Started with Dart

  1. Introduction
  2. Read the Dart language tour
  3. Dart language CodeLabs
  4. Study Questions
  5. Homework Assignment 1

Introduction

Dart is an object-oriented programming language with a syntax similar to Python and Java. This lab will get you started on the basic elements of the Dart language so that you can begin to build Flutter applications.

Read the Dart language tour

Read through the official documentation page A tour of the Dart language. This is a huge page, and you are not expected to remember everything.

Your goals are:

  1. Look for familiar tasks from your previous languages, like how to define variables, the structure of basic expressions, how to define methods, etc.
  2. Take note of the new or unusual things.
  3. Understand Dart’s concept of null-safety. Null-safety does not exist in the default implementations of Python or Java, but it is something you will have to deal with in Dart.

We are not going to be using everything on this page. Bookmark this page in your web browser and come back to it any time you think “How do you do X in Dart?”

Dart language CodeLabs

Now it is time to do some work. You will be using Gooogle’s CodeLabs platform to complete some programming exercises. You complete the CodeLabs in a programming environment in the browser, not in your Flutter project.

Visit https://dart.dev/codelabs/dart-cheatsheet. This is another page you will want to bookmark. Do the following:

  1. Work through the [Dart cheatsheet codelab]This code lab can be completed into the browser using the “DartPad” links.
  2. Work through the CodeLab on Null safety

Study Questions

Homework Assignment 1

You are now ready to make some inroads on your first homework assignment. Check Canvas for details.