flutter环境搭建及入门

新建个文件夹存放flutter

mkdir flutter_src
git clone https://gitee.com/mirrors/Flutter.git

flutter and dart 环境变量配置

export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
export FLUTTER_HOME=~/gitee/Flutter
export DART_HOME=$FLUTTER_HOME/cache/bin/cache/dart-sdk
export PATH=$FLUTTER_HOME/bin:$DART_HOME/bin:$PATH     

查看 dart & flutter 版本

dart --version  
flutter --version

检查 flutter

flutter doctor

flutter 升级

flutter upgrade
posted @ 2020-11-20 11:32  ANEANE  阅读(94)  评论(0编辑  收藏  举报