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
In my case, uses-material-design
indentation was broken. I put 1 (one) more space before it, and it worked fine.
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
In My Case, the image was too large to load, decreasing dimension of image worked.
Issue is related with indent spacing, check your spacing, it should work fine
fonts:
- family: CM Sans Serif
fonts:
- asset: assets/fonts/cm_sans_serif_2012.ttf
Please make sure that we don't have unwanted whitespace since yaml structure is sensitively considering the white spaces. Please refer the documentation for more info as below link,
https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html