Configure Dart in Android Studio and Intell J Community Edition for Window 10
What you learn
How to install a new plugin in JetBrains IDE’s
From Where you get Dart SDK for your Operating System
Install Dart SDK
Configure Dart in your IDE
Create New Directory in Dart Project
Add New File in Dart Project
Write Hello World Code in Dart
Compile and Run Dart Project
Prerequisites
I am assuming you have already Android Studio and IntelliJ IDE installed on your computer
You have aware to use IDE for Java or Android Development
Steps To Configure Data into your Id
- Install Dart SDK on Your System
- Install Dart Plugin in your IDE
- Configure Dart SDK with your IDE
- Test Configuration is done fine or not
Step1: Install the Dart SDK on Your System:
Go to this link and Download Dart SDK
When Download has done click on the downloaded file and follows the installation wizard
Select Yes button and Click Enter
OnNext Screen Select Accept Agreement and Click Next
On Next screen click Next Click Next
On Next Screen click install
On Next Screen click Next
On Next Screen, We Processing is Done then Click Next (Follow this thing for Next Screen as well)
On Next Screen, click finish to install Dart SDK
Step 2: Install the Dart Plugin in your IDE
Open your IDE Android Studio or IntelliJ Community Edition take following steps to install dart plugin:-
Click on File and Select Settings and Click on It
Select plugins from left side options and type Dart in the search field and press enter
Click on install button under Dart plugin
After Successfully installation install button converts into the restart IDE click on it to restart our IDE
Click on Restart and done you have successfully dart in your IDE
Step 3: Configure Dart SDK with your IDE
Click on File and New and From Right Select Dart Language and Give the path to your installed SDK and click Ok button
Click next to create a new project in dart
Give the Name to Your Newly Created project and Click Next
Step4: Add New File in Dart Project
Click on your project directory and select new and then select Directory and Click on It
On next dialog box give the name to your Directory and click ok
Step5: Add New File in Dart Project
Right click on a directory where you want to create a new file and select dart file
On next dialog give the name of File and click ok
Step6: Write Hello World Code in Dart
Left hand click on Newly Created file and It will open in Editing Mode
Type the following code in the opened file
void main()
{
print("Hello From Dart");
}
Step7: Compile and Run Dart Project
Right click on code Editor in anywhere and select Run File name form given options ( CTR+SHIFT+F10)
Now you are able to see your output in the terminal
Github Code Link
Thanks