# 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.
```
# 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.
```
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。