flutterflutter-testflutter-imageflutter-apk

Flutter Release APK does not show Web Images


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


Solution

  • 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