Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pubspec.yaml: Expected a key while parsing a block mapping

I'm working on new application and i get this error on "parsing a block mapping"

I already tried this option :"https://stackoverflow.com/questions/55470780/error-on-line-55-column-4-of-pubspec-yaml-expected-a-key-while-parsing-a-block" but it won't work

fonts:
     - family: GoogleSans
       fonts:
         - asset: assets\fonts\GoogleSansRegular.ttf
            weight: 40
          

column 4 of pubspec.yaml: Expected a key while parsing a block mapping.

   ╷

70 │    fonts:

   │    ^

   ╵
Error detected in pubspec.yaml:
like image 264
Aditya Sutar Avatar asked Oct 23 '25 23:10

Aditya Sutar


1 Answers

Write fonts just below the code "#" as I drew for you in the picture

enter image description here

like image 77
YACINE Avatar answered Oct 26 '25 12:10

YACINE



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!