2021 年 05 月 - 2 文章

flutter ipad 有更新!

  |   0 评论   |   0 浏览

1.1 安装 dart

brew tap dart-lang/dart
brew install dart

1.2 安装 Flutter

git clone https://github.com/flutter/flutter.git

配置环境变量

export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
# 这里换成你自己clone的地址
export FLUTTER_HOME=$HOME/Sdks/flutter
export PATH=$PATH:$FLUTTER_HOME/bin