在 Pubspec.yaml 文件中出现错误并在 flutter 中显示警告

Getting error in Pubspec.yaml file and showing warning all over it in flutter

我的 pubspec.yaml 文件充满了警告而不是 运行 并向我显示警告:“模式验证:缺少必需的属性 'branches',上游,检查信息:根据以下内容验证 YAML 文件一个 JSON 架构,如果指定了

右下角写着Schema...

Click on Schema and select **pubspec**.   

就这些了!