LoginSignup
6
2

More than 5 years have passed since last update.

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

Last updated at Posted at 2018-03-24

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

6
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
2