
我可以定制一个TextField,用一个容器包装它。就像我可以设置保证金属性一样。但是,是否有任何方法可以自定义TextField而不使用容器包装它呢?
更具体地说:我可以在TextField上设置页边距/填充属性吗?
发布于 2018-07-13 16:16:47
TextField(
decoration: InputDecoration(
contentPadding : new EdgeInsets.all(8.0),
border: InputBorder.none,
hintText: 'Please enter a search term'
),
);https://stackoverflow.com/questions/51329006
复制相似问题