flutter 写后台系统,运转到windows
1.老规矩,先上图
2.怎样配备windows开发环境
1.sdk升级到最新 :flutter upgrade
2.配备windows开发:flutter config –enable-windows-desktop
3.设备VisualStudio ,选择c++开发版
3.开发总结与坑
1.选用getx结构,用起来感觉很便当
2.去掉不必要的expand 运转到windows会犯错,web端正常
3.屏幕适配能够用desktop_window这个插件
4.打包设备程序用msix 2.1.1这个插件,
一般release包,在自己电脑上能够运转,但其他人电脑设备为超dll文件
windows打包 1.flutter build windows 2.flutter pub run msix:create
这个插件打包后msix文件,再用advanced installer生成exe
5.windows和web端同一套代码