【发布时间】:2020-10-10 20:39:53
【问题描述】:
大家我怎么能像这个图标的边框一样颤动 我只需要为左侧、底部和顶部设置颜色 我听到有人谈论 customPainter,但我不知道如何使用请帮助我: enter image description here
这是我的代码:
Container(
decoration:BoxDecoration(
shape: BoxShape.circle,
border: new Border(
left: BorderSide(
color: Theme.of(context).primaryColor,
width: 2,),
right: BorderSide(
color: Theme.of(context).primaryColor,
width: 2,),
bottom: BorderSide( color: Theme.of(context).primaryColor,
width: 2,),
top: BorderSide(color: Theme.of(context).primaryColor,
width: 2,),),
) ,
child:ClipOval(
child: Image.asset('images/imageout1.png',width: 85,),
))
【问题讨论】:
标签: flutter border border-radius