this.counterText,//计数文字
this.counterStyle,//计数样式
this.filled,//是否填充
this.fillColor,//填充颜色...: controller,
decoration: InputDecoration(
hintText: '请输入账号aaa',...labelText: '请输入账号',
),
),
可以看到,默认显示labelText,聚焦之后才显示hintText,所以labelText...是可以取代hintText的。...: "无下划线的输入框"),
),
也可以decoration: null, 差别就是没有hintText了
边框
TextField(