第1步,合适位置,命令行拉取flutter源码
git clone -b beta https://github.com/flutter/flutter.git
示例:
第2步,配置环境变量
vim ~/.bash_profile
增加一行
//安装目录/flutter/bin
export PATH=`pwd`/flutter/bin:$PATH
刷新
source ~/.bash_profile
示例:
第3步,安装flutter到电脑
flutter doctor
示例: