简体   繁体   中英

cannot display images from api response flutter

"poster_path": "/9gk7adHYeDvHkCSEqAvQNLV5Uge.jpg"

what should I use to display images like this? I tried to use image network widget but it didn't work

if you are storing the image locally, you have to go to the pubspec.yaml file and change the dependencies for the assets. if you want to load it from a url in the internet, you can use Image.network(url) .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM