ClipOval例子(默认全圆角):
new ClipOval(
child: Container(
width: 100,
height: 100,
color: Colors.red,
),
),
ClipRRect例子(可自定义圆角):
new ClipRRect(
borderRadius: BorderRadius.circular(50),
child: Container(
width: 100,
height: 100,
color: Colors.red,
),
)
ClipOval例子(默认全圆角):
new ClipOval(
child: Container(
width: 100,
height: 100,
color: Colors.red,
),
),
ClipRRect例子(可自定义圆角):
new ClipRRect(
borderRadius: BorderRadius.circular(50),
child: Container(
width: 100,
height: 100,
color: Colors.red,
),
)