Take a fresh look at your lifestyle.

How to Install Flutter on Windows and macOS: Your Easy How-To Guide

Flutter is a perfect tool that helps to create appealing, user-friendly, and fast apps for the mobile, web as well as a desktop that can run on multiple operating systems. And a lot of well-known companies use this technology to build or power their applications: Google, The New York Times, Groupon, Alibaba Group, eBay, BMW, Capital One, Tencent, and Sonos, just to name a few.

If you are still wondering why you should use it, you can find out about the great benefits of Flutter here. Without further ado, let’s go through an easy step-by-step guide on how you can install Google’s UI kit on the most popular operating systems — Windows and macOS.

Let’s start with Windows first and then proceed to macOS.

How to install Flutter on Windows

Here are the necessary steps you need to undertake to install Flutter on Windows. Go through the next four steps.

Step 1. Check the necessary requirements for Windows.

When installing Flutter, make sure your system meets minimum requirements in terms of the operating system version, space storage, and necessary tools.

To run Flutter, you need to have at least Windows 7 Service Pack 1 or more, 64-bit, and your disk space should be no less than 400MB.

Also, be sure that you have two important tools. To start your experience with Flutter, you must download and install the following instruments:

A. Windows PowerShell 5.0 or its later versions. If you use Windows 10, there’s no need for you to have this tool as it’s already been pre-installed.

B. Git for Windows 2.x. Choose the 64-bit Git for Windows Setup file and then run the installation of Git. Make sure that you go for the second choice and opt for the Use Git from the Windows Command Prompt.

If your system meets the necessary environments, you can move to step two.

Step 2. Download the Flutter Software Development Kit folder

Now you need to download the latest Flutter SDK. It contains source code and some useful utilities.

Once you’ve downloaded the Flutter Software Development Kit bundle, go to the zip folder and move its contents into the desired folder. Just do not move it to the C:\Program Files\.

Step 3. Update your path

On step three, you need to edit an environment variable, which is a setting that’s global to a computer. To do so, you have to customize the PATH environment variable:

A. Go to the Search Bar, type env, which is an environment for short, and click on the Edit environment variables for your account option.

B. Copy the path to flutter\bin and place it Under User Variables choose the Path entry and click Edit.

C. In the new Edit environment variable window, click New, paste the copied path, and click OK.

D. Close and open console windows for these changes to take effect.

Step 4. Run Flutter Doctor

During step four, you need to run your Flutter Doctor form the Command Prompt. Just type flutter doctor and press enter. It will check for dependencies you need for creating Flutter apps, and you’ll see that the tool is successfully installed and what other instruments you need to fully utilize the technology.

Now that we’ve figured out how to install Flutter on Windows, it’s time to proceed with macOS.

How to install Flutter on macOS

The installation process of Flutter on macOS is quite simple and takes only three simple steps.

Step 1. Check the necessary requirements for macOS.

First of all, make sure that you meet the minimum requirements. Your operating system is macOS (64-bit) and the disk space should take 2.8 GB. You also have to make sure that you have the next tools which are important for the installation. Here they are: bash, curl, git 2.x, mkdir, rm, unzip, and which.

Step 2. Download the Flutter Software Development Kit folder

If everything’s set, it’s time for the Flutter SDK. Step two involves several substages:

A. You must download the Flutter Software Development Kit zip folder. It contains all the things that you need to build Flutter apps on macOS.

B. Unzip the file by double-clicking. Once it’s done, you’ll get a folder named flutter. Move it to the needed location.

C. The next substep involves adding Flutter to your PATH. To do so, you need to open your terminal. Once it’s ready, open the file bash_profile, which you can find under your username$ type vim .bash_profile and press Enter.

D. You need to add this line to $ export PATH=”$PATH:[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin” by substituting [PATH_TO_FLUTTER_GIT_DIRECTORY] text. Replace it with your path that navigates to your flutter folder. To do so, copy export PATH=”$PATH: and add the path to the folder by drag-and-dropping just in right next to export PATH=”$PATH: in the terminal. Finally, add /bin” to the end of the path. Now you can use Flutter whenever you are on your computer. To save and exit, press ESC, and type :wq!

Step 3. Run Flutter Doctor

This is the final stage of Flutter installation on macOS. Here, make sure that the technology is installed. Enter the terminal once again, type flutter –version and press Enter. It must show you the version you’re currently using.

Then you need to run the flutter doctor command to see if the tool is working properly. You’ll see what components you already have and which ones should be added to run the tool.

To Sum Up

In a nutshell, the Flutter installation process on the most widely-used operating systems — Windows and iOS — takes only a few steps each, but the benefits the technology can bring you are quite substantial and long-lasting. So, do not linger, start using Flutter right now and join the plethora of companies that utilize it to the fullest.