Open SahajRana opened 4 years ago
Use cachedNetworkImage it has a property of placeholder
@HLGB26 Thanks for the hint, can you please share the specific changes required to use CachedNetworkImage?
return this in your build method @shujaatak
Container(
width: MediaQuery.of(context).copyWith().size.width,
height:double.maxFinite,
child: CachedNetworkImage(
imageUrl: key,
placeholder: (context,url)=>circularProgress(),
errorWidget:(context, url, error) => new Icon(Icons.error) ,
fit: BoxFit.cover,
),
);
@harshlohia @HLGB26 I used octo_image which has all goodies of cachednetworkimage but not cache. As my app is highly dynamic i.e images are also expected to change now and then so I used octo_image instead of cachednetworkimage.
Hi Zefyr team,
I'm wondering how can we add a placeholder widget until the image is uploaded in the editor.