(一)Dart 使用 VSCode編輯。(簡單 實用)homebrew的下載我就不說了。

(二)Flutter 下載
1.官網下載最新SDK,拖到Application中(是整個文件拖進去,懂了吧)。
2.創(chuàng)建base.profile文件?
(1)終端:?touch .bash_profile ? ? ?(創(chuàng)建)
(2)終端:source .bash_profile ?(保存)
3.配置?base.profile
(1)環(huán)境配置:
終端:open -e .bash_profile?
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
終端:source .bash_profile
(2)路徑配置:
export PATH=$PATH:/Applications/flutter/bin ? (我放在Applications中)
終端:source .bash_profile

4. 配置Xcode
1. 終端:?flutter doctor

2.完成配置
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch

(三)運行使用
1.創(chuàng)建一個項目
flutter create flutterApp

2.打開運行
?cd flutterApp
flutter run

這里就完全配置成功了。全部步驟就在這里了。
然后這邊使用的暫時是VSCode進行編寫。下面會詳解 使用Xcode配置APPli'cation文件,并使用VSCode編寫項目。
然后會使用MAC配置IJK環(huán)境 和安卓studios 環(huán)境,使用夜神模擬器進行安卓Flutter的編寫步驟。