guys any way to put a fadeInImage as a background of a cicrle avatar? i'm trying but i get this compiler error
The argument type 'FadeInImage' can't be assigned to the parameter type 'ImageProvider<Object>?'
this is my circle avatar
child: Obx(() {
return CircleAvatar(
backgroundColor: Colors.grey,
backgroundImage: NetworkImage(
controller.urlImagem.value.toString(),
),
maxRadius: 100,
);
}),
I want to put this code but this error appears to me at the top
child: Obx(() {
return CircleAvatar(
backgroundColor: Colors.grey,
backgroundImage: controller.urlImagem.value.isNotEmpty ? FadeInImage.memoryNetwork(placeholder: kTransparentImage, image: controller.urlImagem.value) : null,
maxRadius: 100,
);
}),
),