初始化项目
一、创建
1、打开vscode,创建myapp项目
cmd + shift + p
=> Flutter: New Project
=> ...
2、连接虚拟机,或者模拟器
在vscode的下方会有一个No device,点击连接设备
3、运行myapp
❯ cd myapp
❯ flutter run
Launching lib/main.dart on iPhone 12 Pro Max in debug mode...
Running Xcode build...
└─Compiling, linking and signing... 5.3s
Xcode build done. 18.5s
Waiting for iPhone 12 Pro Max to report its views... 4ms
Syncing files to device iPhone 12 Pro Max... 176ms
Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h Repeat this help message.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).
An Observatory debugger and profiler on iPhone 12 Pro Max is available at: http://127.0.0.1:49593/7z6obr4MfsI=/
# 继续输入r,就进行热加载了
4、在模拟器中打开myapp的app就可以了