I\'m using JSON file and register in Pubspec.ymal but showing error and also when I use an image and register it, the same error also occurs. Maybe there is a f
Pubspec.ymal
Spaces are very important in .yaml file.
Just make sure your code is on the same line (vertically) according to key and value.
Or
If you are still confused please watch this simple video. It'll help you to solve the issue easily.
https://imgur.com/gallery/ngoXwUe