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
https://www.dartlang.org/dart-2

Trying the preview of Dart 2 in Flutter · flutter/flutter Wiki
https://github.com/flutter/flutter/wiki/Trying-the-preview-of-Dart-2-in-Flutter

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