Flutter Pub: Expected a key while parsing a block mapping. path:

后端 未结 11 1322
死守一世寂寞
死守一世寂寞 2020-12-24 11:22

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

11条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-24 12:11

    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

提交回复
热议问题