Setting Up Flutter for Windows Development
Contents
Core Requirements
Workflow: Installing and Configuring the SDK
Workflow: Configuring Tooling and IDEs
Workflow: Configuring Target Platforms
Workflow: Building and Packaging for Windows
Workflow: Generating and Installing Certificates
Examples
Core Requirements
Configure the Windows environment to support both Flutter framework execution and native C/C++ compilation. Differentiate strictly between
Visual Studio
(required for Windows desktop C++ compilation) and
VS Code
(the recommended Dart/Flutter code editor).
Workflow: Installing and Configuring the SDK
Follow this sequential workflow to initialize the Flutter SDK on a Windows machine.
Download the latest stable Flutter SDK for Windows.
Extract the SDK to a directory with standard user privileges (e.g.,
C:\src\flutter
). Do not install in protected directories like
C:\Program Files\
.
Copy the absolute path to the Flutter SDK's
bin
directory.
Open Windows Environment Variables settings and append the
bin
directory path to the system or user
PATH
variable.
Open a new terminal session to apply the
PATH
changes.
Feedback Loop:
Run validator -> review errors -> fix.
Execute
flutter doctor -v
.
Review the output for missing dependencies or path issues.
Resolve any flagged errors before proceeding to tooling setup.
Workflow: Configuring Tooling and IDEs
Install
Visual Studio
(not VS Code).
Select and install the
Desktop development with C++
workload during the Visual Studio installation process. This is mandatory for compiling Windows desktop applications.
Install your preferred code editor (VS Code, Android Studio, or IntelliJ).
Install the official Flutter and Dart extensions/plugins within your chosen editor.
Workflow: Configuring Target Platforms
Apply conditional logic based on the specific platform you are targeting for development.
If targeting Windows Desktop:
Ensure the Visual Studio C++ workload is fully updated.
Restart your IDE so it detects the Windows desktop device.
To disable platforms you do not intend to compile for, execute
flutter config --no-enable-
flutter-setting-up-on-windows
安装
npx skills add https://github.com/flutter/skills --skill flutter-setting-up-on-windows