Open ghost opened 5 years ago
Same problem here, did you resolve?
@MauriPastorini and @rohand32 you can wrap it in a Center if you want to Center the Placeholder
Isso funcionou para mim
CachedNetworkImage(width: 120, height: 120, imageUrl: customer.logoUrl, imageBuilder: (context, imageProvider) => Container( decoration: BoxDecoration( image: DecorationImage( image: imageProvider, fit: BoxFit.contain, ), ), ), placeholder: (context, url) => const Padding( padding: EdgeInsets.all(40), child: CircularProgressIndicator(), ), errorWidget: (context, url, error) => const Icon(Icons.error), )
Hello, First of all, thanks for creating this awesome library! I am using CachedNetworkImage for viewing images on a pageview
The problem is even though I've specified width and height of placeholder container, it seems to be ignoring those parameters. My circular progress indicator covers entire screen of application. Is this a bug or am I doing something wrong?
Thanks.