How to start Dart project in Android Studio?

余生长醉 提交于 2020-02-24 00:53:28

问题


During installation of Flutter plugin it was said that Dart plugin will also be installed. So I installed them both. But when I open "File > New" menu I see "New Flutter project", "New Project" but nothing about Dart.
In "New Project" dialog I see "Include C++ support", "Include Kotlin support" only.
How could I start simple Dart project ?


回答1:


Consider installing IntelliJ IDEA Community Edition, which should feel familiar if you use Android Studio. Install the Dart language plugin and you'll get the File / New Project options for Dart programs. (This just provides a wizard front-end to stagehand, as described by creative creator.) Note that you must download and install the Dart SDK also. (Do not try to use the Dart SDK provided by Flutter for plain Dart projects.)




回答2:


This option does not exist.

What you want to use is stagehand.

It is a pub plugin that is installed by using pub in your command line. You probably want to add it to your path.

When that is done, stagehand is installed like this:

pub global activate stagehand

When you navigated to a directory you will be able to create a Dart project from a template:

stagehand console-full

The command will create a Dart project ready for simple console applications in the current directory.




回答3:


Dart itself is a language which is meant to be used for web development, Flutter uses Dart to make apps for Android and iOS, and Android Studio is a mobile development IDE, if you want to use Dart for the web, you should use IntelliJ IDEA (Android Studio is based on it, they are very similar) and the Dart plugin.



来源:https://stackoverflow.com/questions/50977917/how-to-start-dart-project-in-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!