flutter 填坑2 TextField 使用contentPadding 更改高度无效

# Q: TextField 更改默认的高度,使用 InputDecoration 中的 contentPadding 更改默认高度无效。

# A: 同事需要制定 InputDecoration 中的 isDense 为 True。

  ```

是否使用更小的高度,默认为false

Whether the input [child] is part of a dense form (i.e., uses less vertical space).

Defaults to false.

```

      

posted @ 2020-09-03 18:15  jisa  阅读(2362)  评论(0编辑  收藏  举报