Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

dart-archive/dart-tutorials-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

111938d · Jan 19, 2022
Jul 11, 2019
Feb 26, 2020
Jul 11, 2019
Sep 26, 2020
Jul 11, 2019
Jul 11, 2019
Jul 11, 2019
Jul 11, 2019
Jul 11, 2019
Jun 8, 2021
Jul 11, 2019
Jul 11, 2019
Jul 11, 2019
Jul 11, 2019
Oct 11, 2013
Apr 1, 2021
Jan 19, 2022
Jun 20, 2019
Dec 12, 2017
Dec 2, 2013

Repository files navigation

DISCONTINUED

This repo has been discontinued.

For current samples, please see:


These are small Dart samples used by the online Dart tutorials.

Each directory in this repo represents a tutorial. The homepage field in each pubspec file points to the corresponding tutorial on dart.dev.

DartPad and Gist Files

Some of the tutorial examples execute using DartPad. The DartPad examples are organized so that each complete example is placed in a subdirectory, with its own pubspec and web/ directory.

DartPad grabs the source for these examples from gist files. The gist files are generated from the source in this repo using the gist generator.

You can update the gist files, as follows:

  • Clone the repo.
  • If needed, activate the gist executable: pub global activate --source git https://github.com/kasperpeulen/gist-generator
  • Change directory to the top of the repo.
  • Run "gist generate". See the readme for information on available options. If you are updating, or creating, gist files rather than generating a test gist, or performing a dry run of the gist generator, you'll need to provide a Gist token. (See the project lead for info on obtaining an existing Gist token.)

Additional files

README.md: This file.

runtests.sh: BASH script that runs dartanalyzer on all Dart source files in the web/ and bin/ directories.