Trying to replace working Image.network() with CachedNetworkImage():
Image.network(
url,
headers: {},
);
with:
CachedNetworkImage(
imageUrl: url,
placeholder: (context, url) => const CircularProgressIndicator(),
errorWidget: (context, url, error) => Icon(Icons.error),
httpHeaders: {},
);
But image not shown, displaying CircularProgressIndicator forever.