Flutter控件Container部分圆角实现

代码如下:

Container(
   height: 80,
   margin: EdgeInsets.only(left: 40, right: 40, top: 40),
   decoration: 
              BoxDecoration(borderRadius: BorderRadius.only(topLeft: Radius.circular(8),topRight: Radius.circular(8)),
color: Colors.white,),                  
child:
);

你可能感兴趣的:(Flutter控件Container部分圆角实现)