How to Install Flutter – Super Easy

0
2656
install flutter super easy
how to install flutter. A complete guide

In this tutorial, we are going to install flutter SDK, to be precise setting up flutter SDK and running our very first Flutter example. It is super easy to install flutter, please follow the below mentioned steps and we are good to go.

1 Download Flutter SDK

To download the Flutter SDK. You have to follow the Flutter SDK download link. Select your operating system. I am Mac user so I will follow the MacOS guide but it is same for Windows and Linux.

After choosing the right operating system. You will see this button to download the SDK. Click to download the SDK.

2 Unzip The Downloaded SDK

Now simply find unzip the downloaded SDK, unzip where you feel it will stay intact.

3 Platform Setup

As we already know flutter code build a mobile application both for Android and iOS. If you are a MacOS user then please install Xcode and set up a simulator. Steps are pretty simple. Go to App Store search for Xcode, install and create a simulator.

For Android install Android Studio, open AVD manager and set up an android emulator. If you are interested to test the code on a real device don’t forget to Enable Developer options and USB debugging. And on Windows install USB driver as well.

4 Setup Editor 

You can create apps in Flutter using any rich text editor either its Sublime or VS Code. With these editors, you have to set up the command line tools. The most widely used are Visual Studio Code and IntelliJ.

I would prefer to build flutter apps in Android Studio. Everything is pretty easy and stable with the android studio.

5 Install Flutter and Dart

Open Android Studio select plugins and search for Flutter. I have already installed but here you just have to click on the install button. It will take permissions to install the Dart plugin as well. Just allow and after you install flutter and dart restart the android studio.

 

find flutter plugin in android studio
Select the plugins options
install flutter plugin in android studio, install flutter and dart
Search and Install Flutter

 

Create Project

Now you will able to see “Start a new Flutter project” click on it to create a new project. Here is another important but very simple thing. Set the flutter SDK path, you just have to give the SDK path where we unzipped it in the 2 step.

set flutter sdk path.how to set flutter sdk
Give a valid Flutter SDK path
Put the domain name and choose language                                         support

Write the app name and choose the location where you want to save this project. Select the next button. On the next screen if you have a website write the website name or otherwise write anything. You can update this information later on as well. Hit the next button and choose Flutter application (1st option) and finish.

Run the Application

Now we are ready to test a real application on an emulator. Click on 1 st icon and create an emulator of your own choice. Click on the 2nd icon: If you have attached a real device or iOS simulator you can choose on which device you want to install. I have an iOS simulator I will test on it.

flutter sample app code, create emulator

Output

Here we have a default sample running application. It time to build something great. Happy Coding 😉

flutter first app

LEAVE A REPLY

Please enter your comment!
Please enter your name here