flutter circleavatar fit image code example
Example: how to make an image contained in circle avatar in flutter
CircleAvatar(
radius: 30.0,
backgroundImage:
NetworkImage("${snapshot.data.hitsList[index].previewUrl}"),
backgroundColor: Colors.transparent,
)