How to Install Flutter on Windows: Step-by-Step Guide
To install
Flutter on Windows, download the Flutter SDK zip file from the official website, extract it to a desired location, and add the flutter\bin folder to your system PATH. Then, run flutter doctor in Command Prompt to verify the installation and install any missing dependencies.Syntax
Installing Flutter on Windows involves these main steps:
- Download the Flutter SDK zip file.
- Extract it to a folder (e.g.,
C:\src\flutter). - Add the
flutter\bindirectory to your systemPATHenvironment variable. - Run
flutter doctorto check setup and install dependencies.
Each step prepares your system to run Flutter commands and build apps.
batch
REM Download Flutter SDK from https://flutter.dev/docs/get-started/install/windows REM Extract to C:\src\flutter setx PATH "%PATH%;C:\src\flutter\bin" flutter doctor
Example
This example shows how to verify your Flutter installation on Windows after setup.
bash
flutter doctor
Output
Doctor summary (to see all details, run flutter doctor -v):\n[√] Flutter (Channel stable, 3.7.0, on Microsoft Windows [Version 10.0.19044.1706], locale en-US)\n[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)\n[√] Chrome - develop for the web\n[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.3.4)\n[√] Android Studio (version 2022.1)\n[√] VS Code (version 1.75.1)\n[√] Connected device (3 available)\n\n• No issues found!
Common Pitfalls
Common mistakes when installing Flutter on Windows include:
- Not adding
flutter\binto thePATH, so commands likeflutterare not recognized. - Extracting Flutter SDK to a folder path with spaces or special characters.
- Not running
flutter doctorto install missing dependencies like Android SDK or device drivers. - Using an outdated Flutter SDK version.
Always follow the official instructions and verify with flutter doctor.
batch
REM Wrong: Not adding flutter to PATH
flutter doctor
REM Right: Add flutter to PATH first
setx PATH "%PATH%;C:\src\flutter\bin"
flutter doctorQuick Reference
| Step | Command/Action | Description |
|---|---|---|
| 1 | Download Flutter SDK | Get the latest Windows zip from flutter.dev |
| 2 | Extract SDK | Unzip to a folder like C:\src\flutter |
| 3 | Update PATH | Add C:\src\flutter\bin to system PATH |
| 4 | Run flutter doctor | Check setup and install missing tools |
| 5 | Set up IDE | Install Android Studio or VS Code for development |
Key Takeaways
Download and extract Flutter SDK to a simple path without spaces.
Add the flutter\bin folder to your system PATH environment variable.
Run flutter doctor to verify installation and fix missing dependencies.
Use the latest stable Flutter SDK from the official website.
Set up an IDE like Android Studio or VS Code for app development.