Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
Do not run this command from the root of your git clone of Flutter.
翻译:
错误:找不到pubspec.yaml文件。
此命令应从Flutter项目的根目录运行。
不要从Flutter的git克隆的根目录运行此命令
解决:
只需要将根目录切换到当前工程文件即可:如下
cd flutter_app02,切换到当前工程
然后在flutter run运行项目即可!