I love the FadeInImage
I can do this
child: FadeInImage.assetNetwork(
image: \'https://placeimg.com/640/480/any\',
placeholder: \'assets/images/l
I achieved something similar. This image is a hero image at the top of the page, hence the height. The combination of width and BoxFit.cover
make the image cover the viewport.
The loader is (visually) hidden when the image loads.
final imageWithLoader = Container(
height: MediaQuery.of(context).size.height * 0.5,
child: Stack(children: [
Center(child: CircularProgressIndicator()),
Center(
child: FadeInImage.memoryNetwork(
placeholder: kTransparentImage,
image: library.url,
width: MediaQuery.of(context).size.width,
fit: BoxFit.cover),
),
]));