安装
- 直接git下载稳定版本
git clone https://github.com/flutter/flutter.git -b stable --depth 1
clone路径为 xxxxx/project/flutter
在 .bash_profile添加path
# flutter
export PATH="$PATH:/Users/username/Documents/project/flutter/flutter/bin"
- source .bash_profile
source ~/.bash_profile
- 验证是否安装成功
- flutter -h