Flutter尝鲜系列—2、搭建开发环境
flutter sdk安装包
【下载地址】https://flutter.dev/docs/development/tools/sdk/releases#macos
下载完成后,操作步骤:
cd ~/目标路径
unzip ~/安装包路径
设置&更新环境变量
打开 $HOME/.bash_profile
添加 export PATH = [flutter安装路径]/flutter/bin:$PATH
运行 source $HOME/.bash_profile
验证 echo $PATH
flutter doctor 检查
国内镜像
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
Xcode安装
Android Studio安装 | VS Code安装
Flutter插件
Dart插件
码农一枚!~