脾气暴躁老哥 2021-02-07 20:32 采纳率: 0%
浏览 139

flutter 加载本地图片之错误

flutter:

  

  uses-material-design: true

   

   assets:

    - images/loading.jpg

 

显示错误

Error detected in pubspec.yaml:

Expected "uses-material-design" to be a bool, but got true

assets: - images/loading.jpg (String).

Please correct the pubspec.yaml file at D:\wang\demo2\lib\wechat\pubspec.yaml

exit code 1

 

 

更改了之后

flutter:

  uses-material-design: true

  assets:

  - images/loading.jpg

 

 

错误就变了

 

Error detected in pubspec.yaml:

Error on line 19, column 3: Expected ':'.

   ╷

19 │   - images/loading.jpg

   │   ^

   ╵

Please correct the pubspec.yaml file at D:\wang\demo2\lib\wechat\pubspec.yaml

exit code 1

我的天哪,无语了  救救孩子吧

 

  • 写回答

2条回答 默认 最新

  • 歇歇 2021-02-07 21:02
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 微信小程序 用oss下载 aliyun-oss-sdk-6.18.0.min client报错
  • ¥15 ArcGIS批量裁剪
  • ¥15 labview程序设计
  • ¥15 为什么在配置Linux系统的时候执行脚本总是出现E: Failed to fetch http:L/cn.archive.ubuntu.com
  • ¥15 Cloudreve保存用户组存储空间大小时报错
  • ¥15 伪标签为什么不能作为弱监督语义分割的结果?
  • ¥15 编一个判断一个区间范围内的数字的个位数的立方和是否等于其本身的程序在输入第1组数据后卡住了(语言-c语言)
  • ¥15 Mac版Fiddler Everywhere4.0.1提示强制更新
  • ¥15 android 集成sentry上报时报错。
  • ¥15 抖音看过的视频,缓存在哪个文件