1.1 Install Flutter in windows

In this article, we will introduce how to install Flutter in windows. System requirements To install and run Flutter, your development environment must meet these minimum requirements: Operating Systems: Windows 7 SP1 or later (64-bit), x86-64 based. Disk Space: 1.64 GB (does not include disk space for IDE/tools). Flutter depends on these tools being available […]

In this article, we will introduce how to install Flutter in windows.

System requirements

To install and run Flutter, your development environment must meet these minimum requirements:

  • Operating Systems: Windows 7 SP1 or later (64-bit), x86-64 based.
  • Disk Space: 1.64 GB (does not include disk space for IDE/tools).
  • Flutter depends on these tools being available in your environment.
    • Windows PowerShell 5.0 or newer (this is pre-installed with Windows 10)
    • Git for Windows 2.x, with the Use Git from the Windows Command Prompt option.

      If Git for Windows is already installed, make sure you can run git commands from the command prompt or PowerShell.

Get the Flutter SDK

  1. Go to flutter official website to download the latest available installation package
  2. Extract the zip file and place the contained flutter in the desired installation location for the Flutter SDK (for example, C:\Users\<your-user-name>\Documents).
  3. Find flutter_console.bat in the flutter folder of the Flutter installation directory, double-click to run and start the flutter console, and then you are now ready to run Flutter commands in the Flutter Console.

Warning

Do not install Flutter in a directory like C:\Program Files\ that requires elevated privileges.

Update your path

If you wish to run Flutter commands in the regular Windows console, take these steps to add Flutter to the PATH environment variable

  1. From the Start search bar, enter ‘env’ and select Edit environment variables for your account.
  2. Under User variables check if there is an entry called Path:
    • If the entry exists, append the full path to flutter\bin using ; as a separator from existing values.
    • If the entry doesn’t exist, create a new user variable named Path with the full path to flutter\bin as its value.

You have to close and reopen any existing console windows for these changes to take effect.

Run flutter doctor

From a console window that has the Flutter directory in the path (see above), run the following command to see if there are any platform dependencies you need to complete the setup:

C:\src\flutter>flutter doctor

This command checks your environment and displays a report of the status of your Flutter installation. Check the output carefully for other software you might need to install or further tasks to perform (shown in bold text).

For example:

[-] Android toolchain - develop for Android devices
    • Android SDK at D:\Android\sdk
    ✗ Android SDK is missing command line tools; download from https://goo.gl/XxQghQ
    • Try re-installing or updating your Android SDK,
      visit https://flutter.dev/setup/#android-setup for detailed instructions.

We will perform these tasks and complete the setup process in the "1.4 Android Setup" article.

Once you have installed any missing dependencies, you can run the flutter doctor command again to verify that you’ve set everything up correctly.

Author: Hi, I’m iBllex

I am a freelancer. Currently working on Golang, PHP, WordPress, React, Vue, TypeScript, Flutter and other technologies.

Leave a Reply

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