How to Install Dart SDK in Intellij?
Last Updated :
16 Feb, 2022
Dart is an open-source, client-side programming language used to build web and mobile apps. It is developed by Google. It is an object-oriented programming language. Or we can say that it is a class-based and garbage-collected language with C-style syntax. It is used to create applications for different platforms like mobile, desktop, server, and web. To create an application in Dart we need a Dart SDK. Dart SDK is a collection of libraries and command-line tools that you need to develop Dart web, command-line, and server apps. It can work with different types of operating systems like Windows, Linux, macOS, etc.
In this article, we will explain how to set up Dart SDK and use it IntelliJ. IntelliJ is an integrated development environment(IDE). It is written in Java and used for developing computer software. It is the most popular and commonly used IDE. It supports different types of programming languages like Java, Kotlin, Scala, etc, and also supports features like debugging, code inspections, unit testing, TestNG, etc.
Installing dart sdk in Intellij
To install the dart SDK in IntelliJ(on Windows) we follow the following steps:
Download and Install Dart SDK
First of all, we install Dart SDK using the following steps:
Step 1: Navigate to the official website to get the Dart-SDK package.
Step 2: Select Windows and architecture according to your system and select the latest version i.e. (2.16.0) and a zip file will start downloading automatically.

Step 3: After downloading, extract with Winrar or 7zip or any extracting software. Inside the folder, there will be another folder named Dart-SDK.
Step 4: Now copy the Dart-SDK folder and paste it in your computer's C Drive's Programs File (E.g.C:\Program Files) or any location of your choice.
Step 5: Go inside the Dart-SDK folder, inside there is a bin folder open it and copy the path.

Edit Environment Variables Path
Now we edit the environment variable path using the following steps:
Step 1: Open the windows search option and search edit system environment variables and open it.
Step 2: A pop-up will open and then click environment variables and then under User variables, double click on the path and select new and paste the above mentioned copied path and click ok and come back to the home screen. (This will let your system know where the Dart-SDK files are present).

Installing Dart SDK in intellij
Now we install Dart SDK in IntelliJ using the following steps:
Step 1: Open IntelliJ IDEA. If you still don't have IntelliJ Idea follow this article to download and install IntelliJ Idea.
Step 2: After installing open the IntelliJ Idea and click on Plugins present on the left side and search Dart and click on install.

Step 3: Now start a new project and on the left side select Dart and then specify the path to the location where Dart-sdk is located.(E.g.C:\Program Files\dart-sdk)

Step 4: Give the project a name and select the simple console application option. Now you are good to write programs.
Verifying Dart-SDK version and path
After setting up Dart and IntelliJ Idea let's verify whether it has been correctly installed or not by checking the path and version. For windows open Command Prompt and for Mac/Linux open the terminal and type the following command:
dart --version.
It will show the installed version and path.

Create Hello World Program
Once all configuration has been done, the IDE is all set for developing applications using Dart code. (A simple Hello World code, is already provided).

Similarly, you can install dart-sdk in Intellij for the Mac and Linux systems.
Similar Reads
How to Install Dart Sass in Linux? SASS or Syntactically Awesome Style Sheet is an upgrade over standard CSS and provides much-needed features that are missing from CSS like variables, operators, at-rules, nesting, mixins, inheritance, and much more. SASS files are used the .scss extension. Unfortunately, even modern browsers like ch
2 min read
How to Install and Setup Flutter in IntelliJ IDEA? As we all already know that Flutter is a cross-platform application development toolkit, It can be used to develop cross-platform apps for Android, iOS, Linux, macOS, etc. Now you can build apps using flutter in any Text-editor (try to use editors recommended by Flutter on their website to avoid any
7 min read
How to Install Dart on Linux? This article will cover the topic of how you can install Dart SDK on a Linux system. Before we dive into installation let's first take a small overview of Dart, its applications, and system requirements to install Dart in a Linux system. At the time of writing this article, the latest stable release
4 min read
How to Install OpenJDK in Linux If you have started Java learning, you must have the Java Development Kit (JDK) installed on your system. OpenJDK is a free and open-source version of Java that provides everything you need to develop and run Java applications. Itâs a popular choice for developers because itâs easy to install and wo
4 min read
How to Install Scala plugin for IntelliJ? IntelliJ IDEA is an intelligent, context-aware, and easy-to-use IDE for working with Java and other JVM languages like Kotlin, Scala, Groovy, etc on almost all sorts of software or applications. It provide various clever code completion, static code analysis, and refactorings to do routine and repet
1 min read
How to Install IntelliJ IDEA on Windows? JetBrains, a software development company based in Prague, is the creator and maintainer of IntelliJ, a Java and Kotlin IDE. This IDE is available in both community and ultimate editions, offering a plethora of features that enhance code quality and expedite development. This article will help you d
6 min read