I am using FadeInImage Widget to show a Network Image in my App. As I want to use the placeholder property of FadeInImage, I can't use NetworkImage or Image.Network Widget.
Now I want to make FadeInImage circular so I tried to use following options.
- I tried wrapping
FadeInImageinsideContainerto make it circular but theDecorationImageproperty does not allowFadeInImage - I tried using
CircleAvatarbut backgroundImage property ofCircleAvatardoes not allowFadeInImage - I tried using
cached_network_imagelibrary of flutter but was facing the same issue - Last option I tried was using
ClipRRectto make it circular but still it does not work
Following is my code
Container(
width: 50.0,
height: 50.0,
child: ClipRRect(
borderRadius: BorderRadius.circular(25.0),
child: FadeInImage(
placeholder: AssetImage("images/alex.jpg"),
image: NetworkImage(
"https://cdn1.thr.com/sites/default/files/imagecache/scale_crop_768_433/2018/02/gettyimages-862145286_copy_-_h_2018.jpg")),
),
);
