Dart is Sky Language!

void main(){
    print("hello world");
}

🐦 What is Dart?

📚 What is Dart used for?

The Dart programming language can be used for web and mobile applications and is also suitable for server and desktop applications. Dart wasn’t popular and was known as an orphan, but it had a compiler for a Dart VM, plus Google had all the control about this language.

Client Web App Frameworks:

Server Frameworks:

🤔 Why to use Dart?

🛠️ Tools You Will Need

For setting up environment for performing java codes you need with a minimum of 2 GB of RAM. You will also need the following softwares:

⚙️ Setting up Dart development environment

Executing Script Online with DartPad: You may test your scripts online by using the online editor at https://dartpad.dartlang.org/. The Dart Editor executes the script and displays both HTML as well as console output. The online editor is shipped with a set of preset code samples.

Dart Installation:

Install Dart on Windows: In this tutorial, we will provide a step by step process to get Dart installed on Windows. Dart SDK comes as a pre-compiled version. So, download and extracting is all you need to do.

Step 1: Download Dart SDK Go to Dart SDK archive page. You can go to that page by clicking here Download Dart SDK Click on the Dart SDK link. The download will start immediately and a zip file will be downloaded.

Step 2: Extract zip file Extract the contents of Dart SDK zip file. The contents of the folder would be as shown below.

Step 3: Add Dart Path to PATH Environment Variable As of now, you can run dart command only from bin folder of dart sdk. To run dart command from anywhere in your file system, add dart bin path to PATH environment variable. Open Environment Variables. Under System variables, click on Path and click Edit button. Edit environment variable window appears. Click on New and paste the dart sdk bin path as shown below.

Step 4: Restart Command Prompt Close the existing command prompt window and open a new command prompt. Just run the command:

dart --version

⚙️ Install the Dart SDK on Linux:

The steps of Dart installation on Linux is given below. Before installing the Dart, if you are Debian/Ubuntu on AMD64(64-bit Intel) in your local machine, you can install the Dart through one of the following options. Install using apt-get Install a Debian package Installation using apt-get

Step 1: Type the following commands for a one-time setup.

sudo apt update
sudo apt install apt-transport-https
sudo sh -c 'wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
sudo sh -c 'wget -qO- https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'

Step 2:

Type the following command in the terminal to install the Dart SDK using the apt-get option.

sudo apt update
sudo apt install dart

It will successfully download the Dart SDK.

⚙️ Installation a Debian Package:

We can download Dart SDK as a Debian package in the .deb package format. To make all Dart binaries accessible, we have to change the PATH by typing the following command.

export PATH="$PATH:/usr/lib/dart/bin"

To change the PATH for upcoming terminal sessions, use a below command:

echo 'export PATH="$PATH:/usr/lib/dart/bin"' >> ~/.profile

⚙️ Install the Dark SDK on Mac

Step 1: We should have a Homebrew package manager, but if we don’t have it then install the Homebrew and run the following command. It will successfully download the Dart on the Mac.

 brew tap dart-lang/dart
 brew install dart

Step 2: To verify which version we have installed, use the following command.

brew info dart

The Eclipse, VSCode, IntelliJ, and WebStorm are the IDEs from the Jet brains that support the Dart Programming, but WebStorm is more popular than others. We can download it from https://www.jetbrains.com/webstorm/download/.

🎉 Some Cool projects in Dart

1. Invoice Naija : This is a business application for documenting invoices, tasks, and expenses. It was built using flutter and laravel.

3 Weight Tracker : Weight Tracker is an application dedicated to people who want to dump or maintain weight. It allows you to keep an eye on your progress and pursue your weight goals.

4. Flutter Music Player : Flutter Music Player is an open-source music player application, available only on Andriod, for now.

5. Trovami : Trovami is a flutter based android application, you can use to share your current location with other persons.

✨ Conclusion

As you know, Dart is the programming language of choice in Flutter so you can use everything you’ve learnt to start programming native iOS & Android apps. But remember, Dart is not only used in mobile applications. You can develop server and even Desktop apps with it. So you are know in possession of a powerful set of tools which will allow you build your projects and ideas using this amazing language

🤗 Thanks for Reading!