Dart Programming Language

Haider Ali
Complete Flutter Guide
2 min readMar 24, 2024

Lesson #2

Dart is the programming language that powers Flutter. Flutter is a framework that lets you create cross platform applications.

Dart

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

Click on SDK Archive
From Stable Channel select the Dart SDK

The zip file will be downloaded

Unzip the zip file in the folder you just created.

The directory structure should look like:

Directory Structure of Dart installation

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.

Dart Library in VS Code

--

--