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
网友评论