Dart Programming Language
Lesson #2
Dart is the programming language that powers Flutter. Flutter is a framework that lets you create cross platform applications.
How to install Dart?
Create a folder where you want to install dart. In my case it is c:\dart. Create a folder where you will store your dart programs. In my case it is c:\dartprojects
Google ‘dart’ and the first link will refer to dart.dev. Open the website and click on “Get Dart”.
The zip file will be downloaded
Unzip the zip file in the folder you just created.
The directory structure should look like:
Give the folder C:\dart\dart-sdk\bin in the path using the environment variables.
With this dart is installed on your Windows machine.
Test dart
From command prompt give the dart command.
c:\>dart
If somethin is displayed on screen [Not an error] it means that dart is installed on your computer and you can start writing and running dart programs.
You can write dart programs in any text editor and then running using the dart command.
Installing Dart in VS Code
If you are using VS Code as IDE for developing dart applications. Installation of dart is very simple. Open the VS Code and install the dart library.