Flutter For Windows环境搭建

切换到Dev分支

将flutter环境切换到dev分支并更新

  1. flutter channel dev

  2. flutter upgrade

  3. flutter config --enable-windows-desktop

安装Windows应用开发环境

Visual Studio 2019 + "Desktop development with C++"

  • 只有2019的版本才能正常运行打包
QQ截图20211016202858.png

运行

按照往常创建项目,会自动生成windows文件夹

flutter create  hello_windows
QQ截图20211017111500.png

运行查看效果

flutter run -d windows

QQ截图20211017111509.png

你可能感兴趣的:(Flutter For Windows环境搭建)