How to start Dart project in Android Studio?

11,209

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

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

Share:
11,209

Related videos on Youtube

Jack J
Author by

Jack J

Updated on July 05, 2022

Comments

  • Jack J
    Jack J almost 2 years

    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 ?

    • raju-bitter
      raju-bitter almost 6 years
      Android Studio has been specifically created for Android development. If you want to create Dart projects - and you already know the Android Studio user interface - using IntelliJ IDEA's free Community Edition is your best option. Check the IntelliJ Dart plugin page for more details: dartlang.org/tools/jetbrains-plugin
  • thatsalok
    thatsalok almost 6 years
    you said don't use dart SDK provided by flutter for plain dart project, could you let me the reason?
  • Richard Heap
    Richard Heap almost 6 years
    It's modified for flutter (html removed, etc). It's no hardship to download the regular Dart SDK separately.
  • Ardent Coder
    Ardent Coder over 3 years
    As of Flutter 1.21, the Flutter SDK includes the full Dart SDK. (Source: dart.dev/get-dart)
  • Suragch
    Suragch about 2 years
    stagehand is discontinued in favor of dart create now.