2019-02-26
2019-02-26 本文已影响4人
616的小鼠
flutter引用图片:在项目根目录中新建"images"文件夹,将图片资源放置该目录下,在pubspec.yaml中声明assets: -images/XXX.jpg,注意空格格式,最好使用TAB键,会报“Error on line 44, column 4 of pubspec.yaml: Expected a key while parsing a block mapping.
assets:
^”错误
flutter引用图片:在项目根目录中新建"images"文件夹,将图片资源放置该目录下,在pubspec.yaml中声明assets: -images/XXX.jpg,注意空格格式,最好使用TAB键,会报“Error on line 44, column 4 of pubspec.yaml: Expected a key while parsing a block mapping.
assets:
^”错误