0. flutter create example_demo 新建flutter項目
1、flutter packages get 安裝新增的包
2、flutter run 運行flutter項目:
r 刷新xian jian x頁面 R刷新重構程序 h幫助 d和q退出 o 是ios和andriod的切換
3、flutter doctor 檢測必要依賴是否安裝成功
4.flutter運行.當有多個模擬器的時候,指定只運行於一個模擬器的方法:
More than one device connected; please specify a device with the '-d <deviceId>' flag, oruse '-d all' to act on all devices. “xx”的 iPhone • ebde052af5111ac5ff3b41dasdasdasdadd6cbfedc • ios • iOS 12.0.1 iPhone Xs Max • 6F2F0D31-9EDF-43EF-AC8D-558FC52D9EC4 • ios • iOS 12.1 (simulator)
flutter run -d all 在所有模擬器上運行項目
flutter run -d 6F2F0D31-9EDF-43EF-AC8D-558FC52D9EC4
mac電腦常用命令:
cd .. 返回上一個目錄