flutter-environment-setup-windows

Installation
Summary

Automated Windows Flutter development environment setup with platform-specific toolchain configuration.

  • Configures Flutter SDK paths, Visual Studio C++ toolchain installation, and platform-specific settings via interactive prompts for Windows Desktop, Android, or both targets
  • Handles Android Studio setup, device/emulator configuration, and USB driver installation when Android is selected
  • Generates self-signed MSIX certificates using OpenSSL for local Windows app packaging and deployment
  • Includes automated validation via flutter doctor with conditional fixes for missing SDK tools, Visual Studio workload issues, and PATH configuration problems
SKILL.md

Goal

Configures a Windows development environment for building Flutter applications targeting Windows Desktop and Android. Analyzes system requirements, modifies environment variables, installs necessary C++ toolchains, manages platform-specific configurations, and generates self-signed certificates for local Windows application deployment. Assumes the host machine is running Windows 10 or 11 with administrative privileges available for system modifications.

Instructions

  1. Configure Flutter SDK and Environment Variables Extract the Flutter SDK to a secure, user-writable directory (e.g., C:\develop\flutter). Do not place it in C:\Program Files\. Execute the following PowerShell command to append the Flutter bin directory to the user's PATH:

    $flutterBinPath = "C:\develop\flutter\bin"
    $currentUserPath = [Environment]::GetEnvironmentVariable("Path", [EnvironmentVariableTarget]::User)
    if ($currentUserPath -notmatch [regex]::Escape($flutterBinPath)) {
        [Environment]::SetEnvironmentVariable("Path", "$currentUserPath;$flutterBinPath", [EnvironmentVariableTarget]::User)
    }
    
  2. Install Windows Tooling To compile Windows desktop applications, Visual Studio (not VS Code) is strictly required. Install Visual Studio with the "Desktop development with C++" workload. If automating via command line, use the following workload ID:

Related skills
Installs
816
Repository
flutter/skills
GitHub Stars
1.9K
First Seen
Mar 4, 2026