Software requirements
#
To write and compile Flutter code for desktop, you must have the following version of Windows and the listed software packages.
Operating system
#
Flutter supports 64-bit version of Microsoft Windows 10 or later. These versions of Windows should include the required Windows PowerShell 5 or later.
Development tools
#
Download and install the Windows version of the following packages:
-
Git for Windows 2.27 or later to manage source code.
-
Visual Studio 2022 to debug and compile native C++ Windows code. Make sure to install the Desktop development with C++ workload. This enables building Windows app including all of its default components. Visual Studio is an IDE separate from Visual Studio Code.
The developers of the preceding software provide support for those products. To troubleshoot installation issues, consult that product’s documentation.
When you run the current version of flutter doctor
, it might list a different version of one of these packages. If it does, install the version it recommends.
Configure a text editor or IDE
#
You can build apps with Flutter using any text editor or integrated development environment (IDE) combined with Flutter’s command-line tools.
Using an IDE with a Flutter extension or plugin provides code completion, syntax highlighting, widget editing assists, debugging, and other features.
Popular options include:
- Visual Studio Code 1.86 or later with the Flutter extension for VS Code.
- Android Studio 2024.1.1 (Koala) or later with the Flutter plugin for IntelliJ.
- IntelliJ IDEA 2024.1 or later with the Flutter plugin for IntelliJ.
Install the Flutter SDK
#
To install the Flutter SDK, you can use the VS Code Flutter extension or download and install the Flutter bundle yourself.
- Use VS Code to install
- Download and install
Use VS Code to install Flutter
#
To install Flutter using these instructions, verify that you have installed Visual Studio Code 1.86 or later and the Flutter extension for VS Code.
Prompt VS Code to install Flutter
#
-
Launch VS Code.
-
To open the Command Palette, press Control + Shift + P.
-
In the Command Palette, type
flutter
. -
Select Flutter: New Project.
-
VS Code prompts you to locate the Flutter SDK on your computer.
-
If you have the Flutter SDK installed, click Locate SDK.
-
If you do not have the Flutter SDK installed, click Download SDK.
This option sends you the Flutter install page if you have not installed Git for Windows as directed in the development tools prerequisites.
-
-
When prompted Which Flutter template?, ignore it. Press Esc. You can create a test project after checking your development setup.
Download the Flutter SDK
#
-
When the Select Folder for Flutter SDK dialog displays, choose where you want to install Flutter.
VS Code places you in your user profile to start. Choose a different location.
Consider
%USERPROFILE%
orC:\dev
. -
Click Clone Flutter.
While downloading Flutter, VS Code displays this pop-up notification:
Downloading the Flutter SDK. This may take a few minutes.
This download takes a few minutes. If you suspect that the download has hung, click Cancel then start the installation again.
-
Once it finishes downloading Flutter, the Output panel displays.
Checking Dart SDK version... Downloading Dart SDK from the Flutter engine ... Expanding downloaded archive...
When successful, VS Code displays this pop-up notification:
Initializing the Flutter SDK. This may take a few minutes.
While initializing, the Output panel displays the following:
Building flutter tool... Running pub upgrade... Resolving dependencies... Got dependencies. Downloading Material fonts... Downloading Gradle Wrapper... Downloading package sky_engine... Downloading flutter_patched_sdk tools... Downloading flutter_patched_sdk_product tools... Downloading windows-x64 tools... Downloading windows-x64/font-subset tools...
This process also runs
flutter doctor -v
. At this point in the procedure, ignore this output. Flutter Doctor might show errors that don’t apply to this quick start.When the Flutter install succeeds, VS Code displays this pop-up notification:
Do you want to add the Flutter SDK to PATH so it's accessible in external terminals?
-
Click Add SDK to PATH.
When successful, a notification displays:
The Flutter SDK was added to your PATH
-
VS Code may display a Google Analytics notice.
If you agree, click OK.
-
To enable
flutter
in all PowerShell windows:- Close, then reopen all PowerShell windows.
- Restart VS Code.
Download then install Flutter
#
To install Flutter, download the Flutter SDK bundle from its archive, move the bundle to where you want it stored, then extract the SDK.
-
Download the following installation bundle to get the latest stable release of the Flutter SDK.
(loading…)
For other release channels, and older builds, check out the SDK archive.
The Flutter SDK should download to the Windows default download directory:
%USERPROFILE%\Downloads
.If you changed the location of the Downloads directory, replace this path with that path. To find your Downloads directory location, check out this Microsoft Community post.
-
Create a folder where you can install Flutter.
Consider creating a directory at
%USERPROFILE%
(C:\Users\{username}
) or%LOCALAPPDATA%
(C:\Users\{username}\AppData\Local
). -
Extract the file into the directory you want to store the Flutter SDK.
PS C:\> Expand-Archive ` –Path $env:USERPROFILE\Downloads\flutter_sdk_v1.0.0.zip ` -Destination $env:USERPROFILE\dev\
When finished, the Flutter SDK should be in the
C:\user\{username}\dev\flutter
directory.
Update your Windows PATH variable
#
Help
To run Flutter commands in PowerShell, add Flutter to the PATH
environment variable. This section presumes that you installed the Flutter SDK in %USERPROFILE%\dev\flutter
.
-
Press Windows + Pause.
If your keyboard lacks a Pause key, try Windows + Fn + B.
The System > About dialog displays.
-
Click Advanced System Settings > Advanced > Environment Variables…
The Environment Variables dialog displays.
-
In the User variables for (username) section, look for the Path entry.
-
If the entry exists, double-click on it.
The Edit Environment Variable dialog displays.
-
Double-click in an empty row.
-
Type
%USERPROFILE%\dev\flutter\bin
. -
Click the %USERPROFILE%\dev\flutter\bin entry.
-
Click Move Up until the Flutter entry sits at the top of the list.
-
Click OK three times.
-
-
If the entry doesn’t exist, click New….
The Edit Environment Variable dialog displays.
-
In the Variable Name box, type
Path
. -
In the Variable Value box, type
%USERPROFILE%\dev\flutter\bin
-
Click OK three times.
-
-
-
To enable these changes, close and reopen any existing command prompts and PowerShell instances.
Check your development setup
#
Help
Run Flutter doctor
#
The flutter doctor
command validates that all components of a complete Flutter development environment for Windows.
-
Open PowerShell.
-
To verify your installation of all the components, run the following command.
As you chose to develop for desktop, you do not need all components. If you followed this guide, the result of your command should resemble:
Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.29.1, on Microsoft Windows 11 [Version 10.0.22621.3155], locale en)
[✓] Windows version (Installed version of Windows is version 10 or higher)
[!] Android toolchain - develop for Android devices
[!] Chrome - develop for the web
[✓] Visual Studio - develop Windows apps (version 2022)
[!] Android Studio (not installed)
[✓] VS Code (version 1.96)
[✓] Connected device (1 available)
[✓] Network resources
! Doctor found issues in 3 categories.
Troubleshoot Flutter doctor issues
#
When the flutter doctor
command returns an error, it could be for Flutter, VS Code, Visual Studio, the connected device, or network resources.
If the flutter doctor
command returns an error for any of these components, run it again with the verbose flag.
Check the output for other software you might need to install or further tasks to perform.
If you change the configuration of your Flutter SDK or its related components, run flutter doctor
again to verify the installation.
Start developing Windows desktop apps with Flutter
#
Congratulations. Having installed all prerequisites and the Flutter SDK, you can start developing Flutter apps for Windows desktop.
To continue on your learning journey, consult the following guides:
- Learn how to write your first Flutter app
- Flutter fundamentals docs
Manage your Flutter SDK
#
To learn more about managing your Flutter SDK install, consult the following resources.
- Upgrade Flutter
- Add Android compilation tools
- Add web as a build target
- Uninstall Flutter
Was this page’s content helpful?
Thank you for your feedback! Please let us know what we can do to improve.
Provide details
Unless stated otherwise, the documentation on this site reflects the latest stable version of Flutter. Page last updated on 2024-10-28. View source or report an issue.
Your choice informs which parts of Flutter tooling you configure to run your first Flutter app. You can set up additional platforms later. If you don’t have a preference, choose Android.
Was this page’s content helpful?
Thank you for your feedback! Please let us know what we can do to improve.
Provide details
Unless stated otherwise, the documentation on this site reflects the latest stable version of Flutter. Page last updated on 2025-03-12. View source or report an issue.
Flutter is Google’s portable user interface (UI) toolkit. It is used to build and develop eye-catching, natively built mobile, desktop, and web applications from a single codebase. Flutter is free, open-sourced, and compatible with existing code. Due to its user-friendly interface and fairly simple yet to-the-point commands, it is utilized by companies and developers around the world.
In this article, we will look into the process of installing Flutter on Windows.
Installing Flutter on Windows
Follow the below steps to install Flutter on Windows:
Step 1: Navigate Flutter in Webpage
Navigate to flutter.dev on your webpage. On the top menu bar, select Docs > Get Started > Install > Windows and then choose your first type of app as Android.
Step 2: Check for the System Requirements.
Henceforth, you can begin the installation.
You can get a detailed procedure for installing the latest versions of Windows PowerShell 5.0 , Git for Windows, Visual Studio Code, Android Studio, IntelliJ IDEA if not already installed.
Note: But, It recommended to install Visual Studio Code.
Step 3: Restart the system after installing Git and Visual Studio Code on your windows.
Once done, let’s get to the installation of Flutter Software development Kit (Flutter SDK). We have two ways to Install the Flutter SDK as shown in the image below. Select Download and install and Click on the “flutter_windows_version-stable.zip” file.
Flutter SDK is the tool that not only allows us to create flutter projects but also build those projects and transform them into native mobile applications. In simpler words, Flutter SDK is the core tool for building a flutter UI.
Once the zip file is downloaded, extract the ‘flutter’ folder (drag and drop) to any path/directory of the system where you get the read and write access. 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 D: > development > flutter).
Now double-click on the ‘flutter’ folder. Go to ‘flutter_console.bat’ file and double-click to open a command prompt window.
It should look something like this:
This console is actually a Windows terminal available for the developer to run flutter commands. Type in ‘flutter’ to get a list of all the flutter commands that can be run.
Whilst it is pretty good to have a terminal to execute flutter commands and create projects, it’d still be better and more convenient to store all our flutter projects somewhere else on our system for easy access. Let us steer over to the next step of our journey!
Step 4: Check and edit environment variables for global system access.
For this, scroll down to ‘Update your path’ on the official Docs page of the flutter installation page. For this, go to Control Panel > System and Security > System > Advanced System Settings > Environment Variables… . A dialog box displaying a list of the available environment variables appears on your screen.
Environment Variables are global system variables present at the root level, which aids in configuring various aspects of Windows. We will now add the flutter tool as an environment variable for direct access (instead of running the .bat executable), and unlock it on the entire PowerShell and Command Prompt of your system.
To do this, glance through the following steps:
- Check for ‘Path’ variable under User Variables list. If not already present, create a new variable (‘New…’) and assign the ‘flutter\bin‘ directory as its value.
- Now double-click on the ‘Path’ variable and add a new entry by double-clicking on a column below. It should look something like this:
- In the path, copy the entire directory of flutter\bin folder and paste it. Click ‘Ok’ twice to complete the setup. Now, make sure that you have closed any existing Command Prompt/Windows PowerShell windows that are open.
Now, check whether your flutter framework can be accessed globally. To do this, open any terminal (say Command Prompt) and type in ‘flutter‘ and see whether you get the same list of commands as you did get earlier from the .bat terminal. If yes, you have successfully completed setting up flutter on the root level in your system. If not, you might as well consider re-running the setup again.
Step 5: Now, you have to analyze and check whether something is missing/has to be installed further.
To do this, under the Command Prompt terminal, type in ‘Flutter Doctor‘ to check for other requirements.
(Since a version has already been installed on my computer, below is an image shown from a previous version, to help you get an understanding of the ‘errors’ that appear after flutter doctor analysis.)
According to the flutter doctor check, we see that flutter was installed successfully in our system, but the Android tools are missing, and so is Android Studio. We also see that there are no connected devices too. Eventually, the next step is about setting up Android tools on your device, to execute the flutter apps built by you.
Step 6: Setting up Android tools and emulator for android devices.
The first step is to download and install Android Studio. To do this, navigate to the official page of Android Studio and click on ‘Download Android Studio‘.
After accepting the license agreements, you are good to go! Click on the final Download button to start downloading.
After the download is complete, let’s move on to the next step, i.e. installation.
Under ‘Components‘, make sure that both Android Studio and Android Virtual Device are checked, and only then proceed. The Android Virtual Device is an essential tool for running various types and sizes of android emulators to test your flutter project. Henceforth, click on ‘Next‘.
Select the directory you would want your file to be installed in. It is recommended to select some other path apart from the system drive. Once done, click on ‘Next‘.
Finally, click on ‘Install‘. Wait for a couple of seconds for the installation to complete. Check the box beside ‘Launch Android Studio‘. Click on ‘Finish‘.
Wait for Android Studio to launch on your computer. On the home screen, click Next > Custom > Next.
For the Java Development kit location in the next step, it is recommended to keep the default path it requires, to avoid the hassle. In the next step, choose the UI appearance you’d like for Android Studio. Click ‘Next‘.
This next step is a bit important. Remember to check the required boxes exactly as shown below. If kits have already been installed, you can ignore those and move on. Click ‘Next‘. Set your desired folder for Android SDK.
With that done, click on ‘Finish‘. Android Studio will now install all the necessary android tools required for the execution of your flutter projects. This may take a significant time – it’s better to wait!
Now, we are ready to create and build flutter projects on Android Studio and run it on a real or a virtual Android device (emulator).
Step 7: Set SDK as an environment variable, for global access.
Now, open Command Prompt terminal and run ‘flutter doctor’ again. If you have installed Android SDK in the default directory suggested by Android Studio, there wouldn’t be any problem that would appear. Nevertheless, if you have installed it in a non-default directory, flutter would not be able to detect it in your system. To help it able to do that, you guessed it…we would be assigning it as an environment variable, giving global access.
As discussed earlier in Step 4, go to environment variables and click ‘New‘, and do the following (as recommended by flutter doctor). Click ‘OK‘.
Step 8: Accept required Android Licenses.
On the Command Prompt terminal, type in:
flutter doctor --android-licenses
as suggested by flutter doctor. Hit Enter. To review licenses, type ‘y‘ for Yes.
You’ll see a couple of repeated prompts that look like this:
Accept? (y/N):
Type ‘y‘ whenever asked for.
Finally, after all the license agreements have been accepted, you should see a message that looks something like this:
All SDK package licenses accepted
Step 9: Setup Android Emulator.
You have the option to choose between an Android Device or an Android Emulator to build your application on. It depends totally on you.
For setting up Android Device, go through the official docs page and follow the exact steps as mentioned. Download The Google USB Driver by following the link and install according to the instructions given. This can also be installed through Android Studio, which you can later connect to a real Android Device to build the application.
For setting up Android Emulator, you need to go through the following steps:
- Open Android Studio.
- On the topmost menu bar, click on Tools > SDK Manager.
- Verify whether you have the latest SDK installed. Remember to install the latest stable version too by checking on the box to the left.
In my case, it is ‘Android 9.0 (Pie)‘. You can even uncheck the latest version (if not stable), to not only save space but also run all your applications on the stable version itself. - Under the ‘SDK Tools‘ tab, don’t forget to check Google USB Driver to later connect a real Android Device. With that, click ‘Apply‘. Click ‘OK‘ to start SDK installation.
This might take a couple of minutes to complete. After the setup is done, click on ‘Finish‘. Your setup is now complete! - To have a first look at your Android Emulator, open Android Studio. Go to Tools > AVD Manager. A dialog box appears.
- Click on ‘Create Virtual Device…‘, select a device and its dimensions according to your preference, select a system image and lastly, under all default settings, click on ‘Finish’. Click on the ‘▶’ button to fire up your emulator.
There you go! You now have a fully functional flutter framework with devices/emulators to build your beautiful apps on. Go crazy!
In this Article we are going to learn about How to Install Flutter in windows with help Youtube videos step by step guidance. Flutter is a free and open source UI framework that was released in 2017 and originally developed by Google. Flutter enables developers to create cross-platform applications using only one codebase. It is a fantastic tool for developers as it can drastically accelerate app development, reduce costs, and make cross-platform app updates easier.
Introduction
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
- At least 2 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).
How to Install and Configure Flutter SDK on Windows 10
After meeting all requirements, you can begin installing and configuring Flutter SDK. In today’s tutorial, you will be installing a fixed installation of Flutter SDK, without using Git.
Step 1: Download Flutter SDK
Download the Flutter SDK package by clicking on the following button on the webpage.
Step 2: Extract the Files
Extract the downloaded zip file and move it to the desired location you want to install Flutter SDK. Do not install it in a folder or directory that requires elevated privileges, (such as C:\Program Files) to ensure the program runs properly. For this tutorial, it will be stored in C:\deepika\flutter.
Youtube Video Guide Flutter Installation
Step 3: Update Path Variable for Windows PowerShell
Next, you need to update your Path environment variable to run Flutter commands in Windows consoles PowerShell and Command Prompt (CMD). First, click the Start button and type to search for and then click on Edit environment variables for your account.
Under User variables, click on and highlight Path. Click Edit.
On the next screen, click New and add the full path to your flutter\bin directory. For this guide, it is shown below. Click OK on both windows to enable running Flutter commands in Windows consoles.
Step 4: Confirm Installed Tools for Running Flutter
In CMD, run the flutter doctor command to confirm the installed tools along with brief descriptions.
C:\Users\deepika>flutter doctor
Running "flutter pub get" in flutter_tools… 8,9s
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)
[X] Android toolchain - develop for Android devices
X Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
'flutter config --android-sdk' to update to that location.
[√] 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 (not installed)
[√] Connected device (2 available)
[√] HTTP Host Availability
! Doctor found issues in 3 categories.
As visible, several components still need to be installed to complete the installation.
Step 5: Download JAVA JDK8
Youtube Video Download JDK8
Before download and install android studio must be need to download and setup path of Java JDK on your system, watch this video and configure with step by step
Step 6: Download and Install Android Studio
Continue by downloading Android Studio. In the setup, unless you have specific requirements, you can click Next on all screens leaving the default settings. Ensure that the Android Virtual Device option is selected on the Choose Components screen so that you can have an Android emulator running for Android app development, download flutter.
Youtube video Install Android Studio
Afterward, Android Studio Setup Wizard will start and you can proceed by clicking Next.
- On the Install Type screen, select Custom and click Next.
- Select the installation location or leave the default path and click Next.
- Select your UI theme and click Next.
- Select your SDK components and click Next.
- Verify the selections and click Next.
- On the next screen, accept the License Agreement and click Finish.
- The download of the components will start and Android Studio install. Once completed, click Finish.
After the installation, start Android Studio. On the left side, click Plugins. Search for Flutter and click Install to install the Flutter 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.
Afterward, run the flutter doctorcommand in CMD to confirm the Android Studio installation.
C:\Users\deepika>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\deepika>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\deepika>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.
Step 7: Install Visual Studio (Optional)
The above output also shows that Visual Studio is not installed. Visual Studio is not needed unless you want to use Flutter for Windows desktop development.
How to Download and Install Visual Studio Code – DOWNLOAD NOW
If you need to use it, you can download Microsoft’s Visual Studio 2022 with C++. Once the VisualStudioSetup.exe file is downloaded, open it and proceed with the installation by agreeing to all default installation options. This installation requires at least 20 GB of free disk space. After the installation completes, run the flutter doctor command in CMD to confirm the Visual Studio installation.
C:\Users\deepika>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
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.1.3)
[√] Android Studio (version 2021.1)
[√] Connected device (2 available)
[√] HTTP Host Availability
• No issues found!
At this point, all the tools for Flutter projects are ready to be used for the development of Flutter apps. Depending on your needs, you can start your projects in Android Studio or Visual Studio.
Step 8: Run First Flutter App Project Successfully
Conclusion
This article presents the step-by-step installation and configuration of Flutter SDK on the Windows 10 operating system with youtube videos guide. Flutter SDK is continuing to be widely used in mobile, desktop, and web app development.
If your business needs require the usage of Flutter SDK, Liquid Web has a plethora of Windows hosting options, including our Dedicated Servers. You can always reach out to our sales team to learn more about our offerings.
Do like & share my Facebook page. if you find this post helpful. Thank you!!
Related Articles:
- How to Setup Space Between Elements In Flutter
- Flutter Card Widget with Example
- Integrating an API into a Flutter – Working with REST APIs
- Create a simple splash screen in Flutter
- Android Projects with Source Code
- Flutter Interview Questions
- School Database Management System Project
- How to Run first Flutter App
- Make Navigation Drawer in Flutter Source Code
- Flutter weather app using OpenWeatherMap API source code
READ MORE
- System requirements
- Get the Flutter SDK
- Update your path
- Run flutter doctor
- Android setup
- Install Android Studio
- Set up your Android device
- Set up the Android emulator
- Agree to Android Licenses
- Windows setup
- Additional Windows requirements
- Enable desktop support
- Web setup
- Next step
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).
-
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 rungit
commands from the
command prompt or PowerShell.
Get the Flutter SDK
-
Download the following installation bundle to get the latest
stable release of the Flutter SDK:(loading…)
For other release channels, and older builds, see the
SDK releases page. -
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
).
If you don’t want to install a fixed version of the installation
bundle, you can skip steps 1 and 2. Instead, get the source code
from the Flutter repo on
GitHub, and change branches or tags as needed. For example:
C:\src>git clone https://github.com/flutter/flutter.git -b stable
You are now ready to run Flutter commands in the Flutter Console.
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:
- From the Start search bar, enter ‘env’
and select Edit environment variables for your account. - 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 namedPath
with
the full path toflutter\bin
as its value.
- If the entry exists, append the full path to
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.
The following sections describe how to perform these tasks and
finish the setup process. Once you have installed any missing
dependencies, you can run the flutter doctor
command again to
verify that you’ve set everything up correctly.
Android setup
Install Android Studio
- Download and install Android Studio.
- Start Android Studio, and go through the ‘Android Studio Setup Wizard’.
This installs the latest Android SDK, Android SDK Command-line Tools,
and Android SDK Build-Tools, which are required by Flutter
when developing for Android. - Run
flutter doctor
to confirm that Flutter has located
your installation of Android Studio. If Flutter cannot locate it,
runflutter config --android-studio-dir <directory>
to set the
directory that Android Studio is installed to.
Set up your Android device
To prepare to run and test your Flutter app on an Android device,
you need an Android device running Android 4.1 (API level 16) or higher.
- Enable Developer options and USB debugging on your device.
Detailed instructions are available in the
Android documentation. - Windows-only: Install the Google USB
Driver. - Using a USB cable, plug your phone into your computer. If prompted on your
device, authorize your computer to access your device. - In the terminal, run the
flutter devices
command to verify that
Flutter recognizes your connected Android device. By default,
Flutter uses the version of the Android SDK where youradb
tool is based. If you want Flutter to use a different installation
of the Android SDK, you must set theANDROID_SDK_ROOT
environment
variable to that installation directory.
Set up the Android emulator
To prepare to run and test your Flutter app on the Android emulator,
follow these steps:
- Enable
VM acceleration
on your machine. - Launch Android Studio, click the AVD Manager
icon, and select Create Virtual Device…- In older versions of Android Studio, you should instead
launch Android Studio > Tools > Android > AVD Manager and select
Create Virtual Device…. (The Android submenu is only present
when inside an Android project.) - If you do not have a project open, you can choose
Configure > AVD Manager and select Create Virtual Device…
- In older versions of Android Studio, you should instead
- Choose a device definition and select Next.
- Select one or more system images for the Android versions you want
to emulate, and select Next.
An x86 or x86_64 image is recommended. - Under Emulated Performance, select Hardware — GLES 2.0 to enable
hardware
acceleration. -
Verify the AVD configuration is correct, and select Finish.
For details on the above steps, see Managing
AVDs. - In Android Virtual Device Manager, click Run in the toolbar.
The emulator starts up and displays the default canvas for your
selected OS version and device.
Agree to Android Licenses
Before you can use Flutter, you must agree to the
licenses of the Android SDK platform. This step should be done after
you have installed the tools listed above.
-
Make sure that you have a version of Java 8 installed and that your
JAVA_HOME
environment variable is set to the JDK’s folder.Android Studio versions 2.2 and higher come with a JDK, so this should
already be done. - Open an elevated console window and run the following command to begin
signing licenses.$ flutter doctor --android-licenses
- Review the terms of each license carefully before agreeing to them.
- Once you are done agreeing with licenses, run
flutter doctor
again
to confirm that you are ready to use Flutter.
Windows setup
Additional Windows requirements
For Windows desktop development,
you need the following in addition to the Flutter SDK:
-
Visual Studio 2019 (not to be confused with
Visual Studio Code). For Win32 you need the
“Desktop development with C++” workload installed,
including all of its default components. For UWP
you need the “Universal Windows Platform development”
workload installed, with the optional UWP C++ tools.
Enable desktop support
At the command line,
perform the following command to enable Win32 desktop support:
$ flutter config --enable-windows-desktop
For Windows UWP desktop support perform the following commands to switch to
the dev
channel, upgrade Flutter, and enable UWP.
$ flutter channel dev
$ flutter upgrade
$ flutter config --enable-windows-uwp-desktop
For more information, see Desktop support for Flutter
Web setup
Flutter has support for building web applications in the
stable
channel. Any app created in Flutter 2 automatically
builds for the web. To add web support to an existing app, follow
the instructions on Building a web application with Flutter
when you’ve completed the setup above.
Next step
Set up your preferred editor.