flutter 边框 BoxDecoration InputDecotation

Container(
            decoration: new BoxDecoration(
              border: new Border.all(
                width: 1.0,
                color: Colors.grey,
              ),
            ),
            child:Text("aaa")
}

还有取消边框的code

decoration: InputDecoration(border: InputBorder.none,fillColor: Colors.red),
相关文章
相关标签/搜索