1

I have a Flutter web app that has some images from the network in it. when I run it in debug mode things are fine but when I do

flutter run --release

the images wont be loaded.

this is the part where it loads images

ClipRRect(
  borderRadius: BorderRadius.circular(10),
  child: CachedNetworkImage(
    imageUrl: url,
    placeholder: (context, url) => AspectRatio(
      aspectRatio: post.pinimages!.first.accept_ratio!,
      child: Container(
        color:
            getColorFromHex(colorList[_random.nextInt(colorList.length)]),
      ),
    ),
    fit: BoxFit.cover,
  ),
),
Ardeshir ojan
  • 1,914
  • 1
  • 13
  • 36

0 Answers0