Flutter Installation and Setup

Installation in windows:

System requirement:

  • Windows 7 or later operating system
  • 400 mb disk space

You can download flutter sdk from here.

Extract downloaded zip file and place flutter folder from zip file into desired location. (For example c:\flutter or c:\src\flutter) You can put this sdk in any drive, flutter is not limited to put sdk in your c drive.

Update system path for flutter, copy path including bin folder from flutter folder, here my bin folder path looks like C:\src\flutter\bin. Add this to the system path.

To update the environment variable follow below steps. Right click on your my pc and select properties.

Right click on My Computer/This PC

Look on the left side you will find Advanced system settings, click on it.

Right menu from properties

Select Environment Variables under Advanced tab.

Environment Variables from System Properties

Select path from User variables and click edit. Do not click on new.

Path Variable

Click on New from right side and add your flutter bin folder path and dart sdk bin folder path to it as per below image. Click the ok button and restart your pc.

Add this two path from new button click

To check installation requirements, flutter provides the “flutter doctor” command. Run this command from cmd.

C:\>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, 1.18.0-11.1.pre, on Microsoft Windows [Version 10.0.18362.657], locale en-IN)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
[√] Chrome - develop for the web
[√] Android Studio (version 3.6)
[√] Connected device (2 available)
! Doctor found issues in 1 category.

Install if any tool is missing if mentioned as per above result at your side.

If you get an error in the second step then run: flutter doctor –android-licenses and accept all licenses and you will get the right tick in flutter doctor.

If you get an error in the connected device then please connect your device or start the emulator. Then again run flutter doctor and you will get • No issues found!

  • Open android studio, select File->Settings->Plugins
  • Search for the flutter plugin and select it and install.
  • Select yes if dialog prompted for dart plugin.
  • Restart android studio. Done.

Now, we can setup our flutter development  in android studio.

You can create a new project and start using flutter. Please refer to this article for create a new project.

Installation on MacOs:

System requirement:

  • MacOs (64 bit)
  • 2.8 GB disk space
  • Other tools flutter required is bash, curl, mkdir, git, zip, unzip
  • Xcode

Download the latest flutter sdk from here.

Extract downloaded zip file and into desired location.

To run flutter command, you need to update system path and include path till bin directory.

$ export PATH=“$PATH:`pwd`/flutter/bin”

Now update path in the current terminal window using following command.

source ~/.bashrc
source $HOME/.bash_profile
echo $PATH

Run $flutter doctor command to check requirements for flutter installation.
Install latest xcode if reported by flutter doctor.
Install latest android studio and sdk if reported by flutter doctor.
Set up a simulator or connect your device and check device status is connected.

Create and run a simple ‘hello world’ app using flutter.
1. You can create a new project using the below command.
$ flutter create hello_world
2. Now one directory is created named ‘hello_world’. Enter to this directory using command $ cd my_app
Make sure simulator is open or device is connected. To launch app run this command. $ flutter run

Installation on Linux:

System requirement:

  • Linux (64 bit)
  • 600 MB disk space
  • Other tools flutter required is bash, curl, file, mkdir, git, zip, unzip, which

Download the latest flutter sdk from here.

Extract downloaded zip file and into desired location.

Now add flutter tool to your path:

$ export PATH=”$PATH:`pwd`/flutter/bin”

Now run flutter doctor in the terminal. If there are no errors then flutter doctor will run successfully.
I’m assuming that you have already installed android studio for linux, so we can create a new project from android studio. Please follow this to create a new project.

Conclusion: This article is published to help with flutter installation in windows, macOS and linux.

Thank you for reading this article. if you still need any help then you can contact us on info@tagnism.com

Leave a Reply

Your email address will not be published. Required fields are marked *