圆形头像:
效果图:
ClipOval(//圆形头像
child: Image.network("https://cdn2.jianshu.io/assets/default_avatar/6-fd30f34c8641f6f32f5494df5d6b8f3c.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240",
width: 80,height: 80,),
)
圆角头像
Container(
width: 88.0,
height: 88.0,
child:ClipRRect(
borderRadius: BorderRadius.circular(10.0),
child: Image.network("https://cdn2.jianshu.io/assets/default_avatar/6-fd30f34c8641f6f32f5494df5d6b8f3c.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240"),
) ,
)