I am working on a recipe searching flutter app for android. I am using Actual Phone's Screenshot:
This is the code for loading images from API.
image: DecorationImage(
image:
NetworkImage(query["hits"][index]["recipe"]["image"]),
CodePudding user response:
Open the AndroidManifest.xml file located at ./android/app/src/main
<manifest>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application>
i guess you didn't add internet permission in you menifest.xml
CodePudding user response:
I guess either image is not available on the server due to path changed or deleted from server else image value receive null
.
I faced similar issue many times. please check once.
thanks