# 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.

```

      

相关文章:

  • 2021-12-25
  • 2021-05-31
  • 2021-06-10
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2021-07-17
  • 2021-08-11
猜你喜欢
  • 2022-12-23
  • 2021-11-16
  • 2022-02-04
  • 2021-06-27
  • 2021-09-11
  • 2021-12-04
相关资源
相似解决方案