切换到Dev分支
将flutter环境切换到dev分支并更新
-
flutter channel dev
-
flutter upgrade
-
flutter config --enable-windows-desktop
安装Windows应用开发环境
Visual Studio 2019 + "Desktop development with C++"
- 只有2019的版本才能正常运行打包
运行
按照往常创建项目,会自动生成windows文件夹
flutter create hello_windows
QQ截图20211017111500.png
运行查看效果
flutter run -d windows
QQ截图20211017111509.png
网友评论