Tencent / Tencent/tdesign-flutter

[TDTable] height 参数不包含表头高度,无法让表格在垂直方向铺满屏幕(有溢出)

Open
#891 1 comment 0 reactions 0 assignees View on GitHub

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

重现步骤/代码
Image Image

像上面这样 Expanded 里用 LayoutBuilder 来计算 表格最大高度,然后把该高度填入 TDTable 控件,但由于这个高度设进去以后,从源码里看,是不包含表头高度的,所有会导致溢出表头的高度,无法铺满。

期望结果

No response

实际结果

No response

Flutter版本

No response

设备与机型信息

No response

系统版本

No response

补充说明

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.