我想知道如何设置圆形的边框颜色。我的代码是:
child: Container(
child: ClipOval(
child: Container(
color: colorList[index],
height: 30.0,
width: 30.0,
child: Center(
child: new Text((index+1).toString(),
style: TextStyle(color: Colors.white, fontSize: 24,fontWeight: FontWeight.w500),
textAlign: TextAlign.center),
),
),
),
),
我使用Clipoval来显示一个圆圈,我可以轻松设置圆圈内的颜色和文本,但是我需要设置圆圈边框的颜色。 我想在白色背景上显示带有红色边框的白色圆圈。