HOW TO INSTALL FLUTTER ON WINDOWS

Shejan Mahamud
6 min readApr 19, 2024

Flutter is an open-source mobile application development framework that allows developers to build high-performance and visually appealing mobile applications for Android and iOS platforms. It is gaining popularity among developers due to its ease of use, efficiency, and fast development process. To get started with Flutter installation on windows, the first step is to install the framework on your machine. In this process, you need to set up the Flutter development environment, which includes installing the Flutter SDK, configuring your IDE, and adding the necessary plugins.

COPYRIGHT: Collected

Those platforms include all major ones used today, such as:

>Android

>iOS

>Windows

>Mac

>Linux

It is worth noting that Flutter works great for Android and iOS mobile apps and apps for web and desktop. Today, Flutter’s support for MacOS and Linux is still in beta.

This article showcases how to install and configure Flutter SDK on Windows 10.

Pre-installation Requirements

> Windows 10 operating system installed (Flutter will work on Windows 7 SP1 and later versions).

> At least 1.65 GB of free disk space (Additional free storage is needed for other tools and IDEs, if not already installed).

> Windows Powershell 5.0 or newer.

> Git for Windows version 2.0 or newer (Optional).

> Android Studio installed.

> Visual Studio 2022 with C++ (Optional).

After meeting all requirements, you can begin installing and configuring Flutter SDK. In this article, we will look into the process of installing Flutter on Windows:

Installing Flutter on Windows:

Step 1:

> Navigate to flutter.dev on your webpage. On the top menu bar, select Docs > Get Started > Install > Windows.

Step 2:

> Now you will get a page where you will see the System Requirements After this, you can begin the installation.

You can get a detailed procedure for installing the latest versions of Windows PowerShell 5.0 and Git for Windowsif not already installed.

Step 3:

> Restart the system after installing Git on your windows. Once done, let’s get to the installation of Flutter Software development Kit (Flutter SDK). Click on the download link for the latest version.

> Once the zip file is downloaded, extract the flutter folder (drag and drop) to any path/directory of the system. Typically, it is better to create a new folder in a separate directory apart from the system drive due to permission issues (In my case, the target destination is C: > src > flutter).

Step 3: Set up the environment variables To run Flutter commands in the console, you need to add the Flutter SDK path to the PATH environment variable. Here’s how to do it:

> Open the Start menu and search for Environment Variables

> Click on Edit the system environment variables

> Click on the Environment Variables button

> Under System Variables, scroll down to find Path and click on Edit

> Click on New and add the path of the Flutter SDK. For example: C:\src\flutter\bin

> Click on OK to save the changes.

You can check the blow images.

Verify the Flutter installation

To verify that Flutter is installed correctly, open the command prompt and run the following command:

flutter doctor

This command checks the installation and displays a report of the status. If everything is installed correctly, you should see All Flutter doctor checks passed!

Step 4:

> Install Android Studio, Flutter, and Dart plugins

Read this Android Studio installation guide.

Step 5:

After installing Android Studio, the next step is to install the Flutter and Dart plugins. Follow the steps below to install the plugins:

> Open Android Studio and go to File -> Settings

> In the Settings window, click on the Plugins tab.

> Click on the Marketplace tab and search for Flutter

> Click on the Install button next to the Flutter plugin.

> Once the installation is complete, repeat the same process for the Dart plugin.

> It will also prompt you to install Dart, a programming language used to create Flutter apps. Click Install at the prompt.

> Finally, click Restart IDE so that the plugin changes are applied. Click Restart at the prompt to confirm this action.

> After open Android Studio Now Let’s Create the new project

> To use the emulator Go to Virtual Device Manager

>Select the Hardware that is compatible with your project

> Afterward, run the command in CMD to confirm the Android Studio installation.

flutter doctor

Output:

C:\Users\SHEJAN>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.10.4, on Microsoft Windows [version 10.0.19041.746), locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[√] Chrome - develop for the web
[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++- workload, including all of its default components
[√] Android Studio (version 2021.1)
[√] Connected device (2 available)
[√] HTTP Host Availability

! Doctor found issues in 2 categories.

Android Studio was successfully installed, however, it finds an issue with Android licenses. This issue is fairly common and is mitigated by running the following command in CMD.

flutter doctor --android-licenses

> When asked, input y to all prompts, to accept licenses.

C:\Users\SHEJAN>flutter doctor --android-licenses
5 of 7 SDK package licenses not accepted. 100% Computing updates...
Review licenses that have not been accepted (y/N)? y

> Running the flutter doctor command again shows the issue resolved.

C:\Users\shejan>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.10.4, on Microsoft Windows [Version 10.0.19041.746], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[√] Chrome - develop for the web
[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2021.1)
[√] Connected device (2 available)
[√] HTTP Host Availability

! Doctor found issues in 1 category.

Awesome! You’ve just unlocked a world of possibilities by installing Flutter on your Windows machine. Now, get ready to embark on a thrilling journey of building stunning and dynamic cross-platform mobile applications with ease. So, what are you waiting for? Go ahead and dive into the exciting world of Flutter development and unleash your creativity!

--

--

Shejan Mahamud

Aspiring web developer passionate about MERN stack. Eager to create innovative and user-friendly web applications.