Recently released on pub:

Show more releases

Latest Blog Posts

Dart SDK and Dartium 1.22.0 Chocolatey Packages for Windows

Davy Mitchell, on 15 Feb 2017
Chocolatey is a package manager for Windows similar to Linux's apt-get, based on Microsoft's Nuget tool and Powershell scripting language. It works from the command-line and from a WPF GUI interface. You can install unmoderated versions by specifiying the install version during installation.Chocolatey has also been updated with versions 1.22.0Command line installation: choco uninstall dart-sdkchoco install -y dart-sdk -version 1.22.0To verify you have the right version on your path. dart --versionDart VM version: 1.22.0 (Mon Feb 13 17:39:28 2017) on "windows_x64"Command line installation: choco uninstall dartiumchoco install -y dartium -version 1.22.0 read more

Dart 1.22: Faster tools, assert messages, covariant overrides

Filip Hráček, on 14 Feb 2017
Dart 1.22 is now available. It introduces a sync/async union type, assert messages, covariant parameter overrides, and much more. Tool startup is now much faster. Get it now!Faster tool startupWe have switched to using application snapshots for running our SDK tools like dart2js, analyzer, and pub. This improves startup performance. See the AOT compiling talk at Dart Dev Summit 2016 for more information. Information about how to use application snapshots can be found in the SDK wiki.Here are the improved performance numbers we see with the switch.Assert messagesThe fail-fast principle is crucial for building high-quality software, and assert is the simplest way to fail fast.... read more

Cellular Automata - Forest Fire

Davy Mitchell, on 11 Feb 2017
Cellular Automata has featured on this blog before - Conway's Game of Life. Whilst on the Rosetta Code site I stumble upon the Forest Fire model. Of course, a Dart version was soon underway - specifically designed to fit nicely on my phone's screen. The model's rules are straightforward: "A burning cell turns into an empty cellA tree will burn if at least one neighbor is burningA tree ignites with probability f even if no neighbor is burningAn empty space fills with a tree with probability p" Watch the video below, try it out here(link fixed) or view the source... read more

Sound Dart and strong mode

Shams Zakhour, on 11 Jan 2017
As of the 1.19 release, Dart supports an optional mode, called strong mode, that supports stronger static typing. Strong mode helps you find bugs sooner and contributes to making Dart a sound language.To learn more about using strong mode to enable soundness, including the how, the why, and fixes for common problems you might encounter, see:Sound DartHow and why to write sound Dart code, and how to use strong mode to enable soundness.Sound Dart: FAQA list of common questions for those who are interested in stronger static typing.Sound Dart: Fixing Common ProblemsHow to fix errors and warnings you may encounter... read more

Set The Title Of A Web Page in Angular2 / AngularDart

Davy Mitchell, on 11 Jan 2017
This is just a tiny snippet for Angular2 / AngularDart that I decided was worth a blog post because it is A) a FAQ and B) has lots of weird Angular 1 workarounds on the web that may be time wasting rabbit trails! How to set the web page Title from Angular? import 'package:angular2/src/platform/browser/title.dart';.... Title _title = new Title();...._title.setTitle(text); read more