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),

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章