CHRISTOPANANJICKAL / fast_cached_network_image

A flutter package to cache network image fastly without native dependencies.
MIT License
30 stars 36 forks source link

how do I add curve edges using this plugins? #32

Closed frendcarlo closed 1 year ago

frendcarlo commented 1 year ago

SizedBox( height: 300, width: double.maxFinite, child: FastCachedImage( url: eventItemData.imageUrl!, fit: BoxFit.fitWidth, fadeInDuration: const Duration(seconds: 1), ), ),

tried this

Container( height: 200, width: double.infinity, decoration: BoxDecoration( color: Colors.transparent, border: Border.all( color: Colors.grey.withOpacity(0.02), width: 0.5, ), boxShadow: [ BoxShadow( color: Colors.black.withOpacity(0.03), spreadRadius: 5, blurRadius: 7, offset: const Offset(0, 2), ), ], borderRadius: BorderRadius.circular(5.0), ), child: FastCachedImage( url: eventItemData.imageUrl!, fit: BoxFit.fitWidth, fadeInDuration: const Duration(seconds: 1), ), ),

but seems like it doesn't give me curve edges.

CHRISTOPANANJICKAL commented 1 year ago

Did you try using cliprrect widget?

frendcarlo commented 1 year ago

that indeed solve the problem. thanks