目录
准备
unzip ~/Downloads/flutter_macos_v1.0.0-stable.zip -d ~/Workspace/
mv ~/Workspace/flutter ~/Workspace/flutter-sdk
export PATH=$HOME/Workspace/flutter-sdk/bin:$PATH
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
flutter doctor # Show information about the installed tooling
关于更多Flutter环境搭建可以参考入门: 在macOS上搭建Flutter开发环境
IDE
关于更多IDE配置可以参考起步: 配置编辑器
起步
-
查看 -> 命令面板 (shift + command + p) -> flutter new project -> "flutter_startup"
-
VS Code右下角选择设备 -> iPhone XR
-
调试 -> 启动调试 (F5)
关于调试和运行的更多介绍可以参考起步: 体验
网友评论