Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
527 views
in Technique[技术] by (71.8m points)

flutter 图片不显示,pubspec.yaml配置都加了,希望有人帮忙指出来问题

flutter项目中,本地图片就是不显示,我把图片放到 assets/images下面,配置也加了
flutter:
uses-material-design: true
assets:

  • assets/images/

这种就是不显示,跟别人配置一样啊。

后来给成了,跟lib,android 同目录创建了一个images文件,下面多了2.x,3.x, 本地图片都放到这个下面. 配置如下:
flutter:
uses-material-design: true

assets:

  • images/ic_home_normal.png
  • images/ic_home_press.png

改成这种就显示了,问题出现在哪,请帮忙解惑. 谢了。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...