LoginSignup
8
6

More than 5 years have passed since last update.

Flutter開発にDart2を使用する設定

Posted at

Android Studio -> Preferences -> Languages & Frameworks -> Flutter に移動して、Run applications with --preview-dart-2 にチェックを入れて、Android Studioを再起動すれば、Dart2で開発することができます。

Dart2ではnewキーワードがオプションになったので、インスタンス生成しているnew MyApp()のようなコードをMyApp()に変更して問題なければ正常にDart2が使えていると考えて良さそうです。

use-dart2.png

参考

8
6
1

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
8
6