flutter  开发桌面端

发布时间:2022-02-10 22:09:53
  1. 首先是桌面端开发是没开启,需要先开启
flutter config --enable-macos-desktop
flutter config --enable-linux-desktop
flutter config --enable-windows-desktop

2.在android studio创建桌面项目时,可能linux,macos,windows三个无法选择 可以先将project type 选择到skeleton再选回application这时linux,macos,windows三个就可以 选了

3.进入项目后 发现无法运营,没有可选择设备 执行如下命令

flutter devices

再重新开打 就会出现运行设备了

最后是打包

flutter build macos
flutter build linux
flutter build windows

Card image cap
APP STORE
Card image cap
应用宝
Card image cap
小米
Card image cap
华为