Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to start Dart project in Android Studio?

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 ?

like image 431
Jack J Avatar asked Jun 21 '18 21:06

Jack J


2 Answers

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.)

like image 174
Richard Heap Avatar answered Oct 14 '22 22:10

Richard Heap


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.

like image 42
creativecreatorormaybenot Avatar answered Oct 15 '22 00:10

creativecreatorormaybenot