13.1.flutter_桌面应用
2021-12-13 本文已影响0人
ChaosHeart
1.配置环境为flutter2.0以上
https://www.jianshu.com/p/97ac9801b12a
2.开启支持Mac,windows,linux
flutter config --enable-macos-desktop
flutter config --enable-windows-desktop
flutter config --enable-linux-desktop
截屏2021-12-13 15.59.31.png
3.运行Mac,windows,linux
flutter run -d macos
flutter run -d windows
flutter run -d linux
3.打包Mac,windows,linux
flutter build macos
flutter build windows
flutter build linux
参考:
https://www.imooc.com/article/details/id/297643
https://blog.csdn.net/weixin_42357256/article/details/112700780