Flutter 入门

2019-03-15  本文已影响0人  Lesss

安装Flutter

* export PUB_HOSTED_URL=https://pub.flutter-io.cn
* export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
* git clone -b dev https://github.com/flutter/flutter.git
* export PATH="$PWD/flutter/bin:$PATH"
* cd ./flutter
* flutter doctor

创建Flutter moudle

flutter create -t module voiceview(voiceview为生成的flutter module名称)

问题 flutter: command not found

输入 open ~/.bash_profile
将
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
export PATH="$PWD/flutter/bin:$PATH"
export PATH=$PATH:/Users/xxxx/flutter/bin/
拷贝进入 就可以了
上一篇下一篇

猜你喜欢

热点阅读