Home > front end >  Network Images not showing in android Flutter
Network Images not showing in android Flutter

Time:06-08

I am working on a recipe searching flutter app for android. I am using Cookpad Emulator Screenshot Actual Phone's Screenshot: Cookpad Mobile 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

  • Related