Flutter_cached_network_image: Fullscreen placeholder

Created on 10 Mar 2019  路  2Comments  路  Source: Baseflow/flutter_cached_network_image

Hello,
First of all, thanks for creating this awesome library!
I am using CachedNetworkImage for viewing images on a pageview

 CachedNetworkImage(
                imageUrl: image.url,
                placeholder: (context, url) => new SizedBox(
                      width: 64.0,
                      height: 64.0,
                      child: new LinearProgressIndicator(),
                    ),
                errorWidget: (context, url, error) => new Icon(Icons.error),
              ),

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.

Most helpful comment

@MauriPastorini and @rohand32 you can wrap it in a Center if you want to Center the Placeholder

All 2 comments

Same problem here, did you resolve?

@MauriPastorini and @rohand32 you can wrap it in a Center if you want to Center the Placeholder

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sososdk picture sososdk  路  5Comments

tolotrasamuel picture tolotrasamuel  路  6Comments

digitaldangal picture digitaldangal  路  5Comments

Gavin-1991 picture Gavin-1991  路  6Comments

gregko picture gregko  路  6Comments