Requirements: Visual Studio 2022, Windows 10 (1903+) or Windows 11
Target: Windows desktop application
Flutter SDK: 3.38.5+ (Dart 3.10.4+)
Visual Studio: 2022 or 2019 (16.11+)
Workload: "Desktop development with C++"
Components: MSVC v142/v143, Windows 10/11 SDK
- Download Visual Studio 2022 Community (free): https://visualstudio.microsoft.com/downloads/
- During installation, select "Desktop development with C++"
- Ensure Windows 10/11 SDK is checked
flutter doctor -vExpected output:
[✓] Visual Studio - develop for Windows
flutter build windows --debugOutput: build\windows\x64\runner\Debug\sleepy_ui.exe
flutter build windows --releaseOutput: build\windows\x64\runner\Release\sleepy_ui.exe
The Release folder contains all required files for deployment:
sleepy_ui.exe(main executable)flutter_windows.dll(Flutter engine)data\folder (Flutter assets)- Plugin DLLs (flutter_secure_storage_windows_plugin.dll, etc.)
Copy the entire Release folder to the target machine.
Windows uses plain text JSON storage at:
%APPDATA%\sleepy_ui\config.json
File permissions are managed by Windows directory ACLs.
Issue: MSVC v142/v143 build tools not found
Solution: Run Visual Studio Installer → Modify → Desktop development with C++
Issue: Windows SDK not found
Solution: Install via Visual Studio Installer → Individual Components → Windows 10/11 SDK
Issue: CMake errors during build
Solution: Clean build directory and retry:
flutter clean
flutter pub get
flutter build windows --release