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.

```

      


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM