Tencent / Tencent/tdesign-flutter
[TDTable] height 参数不包含表头高度,无法让表格在垂直方向铺满屏幕(有溢出)
Open
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 1.2k
- Forks
- 182
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 88
Description
tdesign-flutter 版本
0.2.7
重现链接
No response
重现步骤/代码
像上面这样 Expanded 里用 LayoutBuilder 来计算 表格最大高度,然后把该高度填入 TDTable 控件,但由于这个高度设进去以后,从源码里看,是不包含表头高度的,所有会导致溢出表头的高度,无法铺满。
期望结果
No response
实际结果
No response
Flutter版本
No response
设备与机型信息
No response
系统版本
No response
补充说明
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the TDTable height and layout implementation, then reproduce the issue with Expanded and LayoutBuilder as described. Check how the configured height relates to the table header, and verify that the table fills the available vertical space without overflowing the header.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100