Skip to content
Articles
Article

Flutter with Dart 2

by Brian Armstrong flutter.institute

1 min read

Dart 2 [https://www.dartlang.org/dart-2] is in pre-release, and you can now test your flutter apps against it. It's pretty simple. Simply add the --preview-dart-2 flag as follows: flutter run --preview-dart-2 (The --strong argument can also be quite useful) Also, make sure to run a flutter upgrade to make sure you are on the latest version. This flag is not effective until flutter 0.0.21 which went to Alpha on 2018-01-29. Now you can use some nifty Dart 2 things, like leaving out new

Forum

Questions about this, or something to add?

Discuss on the forum

Report this · Wrote this? Claim it

Supported by