Flutter 开发 Mac 应用

MacOS

1 开启

1
flutter config --enable-macos-desktop

2 创建( 或已有项目添加 macOS )

1
flutter create .  # 这里的 . 号是在当前文件夹创建

3 运行

1
flutter run -d macOS

4 打包

1
flutter build macos

5 在 vscode 中创建启动驱动

1
2
3
4
5
6
        {
            "name": "macOS",
            "request": "launch",
            "type": "dart",
            "deviceId": "macOS"
        },

image-20200513140744769

开启网络权限

image-20200603152634183

iphone7

iOS 13 占70%,iOS 12 占23%,iOS 11 及之前版本占7%。

image-20210331145001776

Licensed under CC BY-NC-SA 4.0
本文阅读量 次, 总访问量 ,总访客数
Built with Hugo .   Theme Stack designed by Jimmy