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
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