I've tried these line of code but did'nt work for me,
CircleAvatar(
backgroundImage: Image(image: SvgPicture.asset("assetName")) as ImageProvider,
backgroundColor: Colors.red,
radius: 4,
),
And also tried this
backgroundImage: SvgPicture.asset("assetName"),
the error I'm facing is "The argument type 'SvgPicture' can't be assigned to the parameter type 'ImageProvider?'."