【发布时间】:2020-01-06 17:14:27
【问题描述】:
我正在制作Container(),我给了它一个边框,但如果有圆形边框会很好。
这就是我现在拥有的:
Container(
width: screenWidth / 7,
decoration: BoxDecoration(
border: Border.all(
color: Colors.red[500],
),
),
child: Padding(
padding: EdgeInsets.all(5.0),
child: Column(
children: <Widget>[
Text(
'6',
style: TextStyle(
color: Colors.red[500],
fontSize: 25),
),
Text(
'sep',
style: TextStyle(
color: Colors.red[500]),
)
],
),
),
);
我尝试将ClipRRect 放在上面,但这会将边框剪掉。有解决办法吗?
【问题讨论】: