flutter控件添加下划线,就是边框只显示底部,添加分隔线

   new Container(
            height: 35,
            width: MediaQuery.of(context).size.width - 140,
            decoration: BoxDecoration(
              border:Border(bottom:BorderSide(width: 1,color: Color(0xffe5e5e5)) )
//              border: Border.all(color: Colors.grey,width: 0.5),

//              borderRadius: BorderRadius.circular(5),
            ),

 

你可能感兴趣的:(Flutter)