效果如下:
实现代码:
Container(
child: CircleAvatar(
backgroundColor: Colors.amber,
radius: ScreenUtil().setSp(50),
child:
Image.asset('图片路径',width: ScreenUtil().setWidth(50),height: ScreenUtil().setHeight(50),),
),
),