0

Error detected in pubspec.yaml: Error on line 62, column 4: Expected a key while parsing a block mapping. ╷ 62 │ assets: │ ^ ╵ Error detected in pubspec.yaml: Exception: Please correct the pubspec.yaml file at .\pubspec.yaml Restarted application in 204ms.

enter image description here I uncommented the assets section in the pubspec.yaml file and I also added the correct path of the file like this :-

To add assets to your application, add an assets section, like this:

assets: - assets/images/

But I can not see the image in the app and got the above error.

Monasha
  • 882
  • 1
  • 12
  • 17

0 Answers0