flutter 边框 BoxDecoration InputDecotation

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

还有取消边框的

decoration: InputDecoration(border: InputBorder.none,fillColor: Colors.red),

猜你喜欢

转载自my.oschina.net/u/554046/blog/2982495