Help us understand the problem. What is going on with this article?

【Flutter】Android StudioでDart2を有効にする

More than 1 year has passed since last update.

Android StudioでDart2を有効にする方法メモです。


  1. Preferencesを開く
  2. 左カラムの Languages & Frameworks > Flutter を選択
  3. ExperimentsRun applications with --preview-dart-2 にチェックを入れる
  4. Apply後にAndroid Studioを再起動する



newconst が省略してビルドできればOKです。


  • Android Studio 3.0
  • Flutter 0.1.5
  • Dart 2.0.0-dev.28.0


Dart 2 Updates | Dart

Trying the preview of Dart 2 in Flutter · flutter/flutter Wiki

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away