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.

```

      

原文地址:https://www.cnblogs.com/jisa/p/13609134.html