Flutter Release APK does not show Web Images

1.2k views Asked by At

I just started to code with Dart and Flutter a few days back.

So far I mostly used the Android Emulator for testing my Apps. Today I created a .apk to test it but the network images dont load.

Does anyone have an idea why thats so?

This is the image code

1

There are 1 answers

1
Ravindra S. Patil On BEST ANSWER

Try below line of codes hope its help to you

Add below line in project_name/android/app/src/main/AndroidManifest.xml above <application> tag

<uses-permission android:name="android.permission.INTERNET" />

and if you display this images on web try to run below command for running the project

flutter run -d chrome --no-sound-null-safety --web-renderer=html

try to run below command for build the web app

flutter build web --no-sound-null-safety --web-renderer=html