Advertisement

Responsive Advertisement

Say hello to Dart

 In this post, I am gonna share how to start dart and write hello world program using dart.

First, we need to setup dart, for this, we need to install dart SDK using the below command. (I am windows OS)

choco install dart-sdk


after that we need IDE for the writing program for this I am using IntelliJ community edition and it is free to download and use from here.

after installing IDE we need to install dart plugin to that.

open your IDE and go to file -> setting -> plugins and search dart. after you can see the dart plugin below and you need to install that.


after installing that you can create dart project as below(please add dart SDK location as I did in the below picture)


so that is done from now you can be dart pro.

then first we write hello world as every new beginning.

after creating a project you can see the below directories.


The bin directory contains our main class.

Lib contains libraries and a test directory for writing test cases.

then we write our hello world program in the main class.


you can see Hello world printed in the console after the run program.

Post a Comment

0 Comments