flutter circleavatar code example
Example 1: 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,
)
Example 2: border at circleAvatar flutter
CircleAvatar(
radius: 30,
backgroundColor: Colors.teal,
child: CircleAvatar(
backgroundImage: AssetImage('assets/appdev.png'),
radius: 28,
),
),