D:\flutter\bin\flutter.bat --no-color packages get
Error detected in pubspec.yaml:
Error on line 49, column 4: Expected a key while parsing a block mapping.
╷
49 │ assets:
│ ^
╵
Please correct the pubspec.yaml file at G:\flutter\demo\flutter_boss\pubspec.yaml
Process finished with exit code 1
截图如下:
原因是assets和前面没有对齐,看图:
就差一个空格,太严格了。不仔细看还真没注意。把assets前面空格减少一个就行了。太坑了!
部分素材资源来源网站,本站提供免费下载,如有侵权请联系站长马上删除!