下載flutter sdk:
git clone -b master https://github.com/flutter/flutter.git
啟用windows支持:
flutter config --enable-windows-desktop
set ENABLE_FLUTTER_DESKTOP=true
運行flutter doctor:
Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel master, v1.18.0-6.0.pre.80, on Microsoft Windows [Version 10.0.18363.720], locale zh-CN) [√] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [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 the following components: MSBuild MSVC v142 - VS 2019 C++ x64/x86 build tools - If there are multiple build tool versions available, install the latest Windows 10 SDK (10.0.17763.0) [√] Android Studio (version 3.6) [!] IntelliJ IDEA Ultimate Edition (version 2019.3) X Flutter plugin not installed; this adds Flutter specific functionality. X Dart plugin not installed; this adds Dart specific functionality. [√] Connected device (1 available)
可以看出來,需要下載Visual Studio:里面有提示下載的地址:https://visualstudio.microsoft.com/downloads/
然后安裝 "Desktop development with C++" ,要注意的是: Windows 10 SDK (10.0.17763.0) ,需要下載的是10.0.17763.0這個版本的。因為默認下載的是其他版本的sdk,所以勾選的時候,需要注意選擇。 MSBuild MSVC v142 - VS 2019 C++ x64/x86 build tools 這2個是默認就有選擇的。

再次運行flutter doctor,就說明flutter支持windows應用就好了。
Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel master, v1.18.0-6.0.pre.80, on Microsoft Windows [Version 10.0.18363.720], locale zh-CN) [√] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [√] Visual Studio - develop for Windows (Visual Studio Enterprise 2019 16.5.4) [√] Android Studio (version 3.6) [!] IntelliJ IDEA Ultimate Edition (version 2019.3) X Flutter plugin not installed; this adds Flutter specific functionality. X Dart plugin not installed; this adds Dart specific functionality. [√] Connected device (1 available)
下載windows應用demo:
git clone https://github.com/google/flutter-desktop-embedding
運行Flutter windows應用的demo:
D:\Development\Workspace\Flutter\Windows\flutter-desktop-embedding\testbed>D:\Development\FlutterSDK\flutter_master\flutter\bin\flutter run
運行效果:

參考資料:
https://github.com/wintops/Atopas/blob/master/flutter_windows.md
https://zhuanlan.zhihu.com/p/91686888
