TextField(
decoration: InputDecoration(
border: InputBorder.none,//去掉输入框的下滑线
fillColor: Colors.white,
filled: true,
hintText: "留下你的精彩评论吧",
hintStyle: TextStyle(color: Colors.grey, fontSize: 13.0),
contentPadding: EdgeInsets.all(5.0),
enabledBorder: null,
disabledBorder: null),
controller: _publicController,
),
如果filled=true,则背景为fillColor,无需包在Container控件中