Tencent / Tencent/tdesign-flutter

[Tabs] 带内容区选项卡不设置高度就不显示内容是否可以设置自适应高度

Open
#519 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

IssueShoot
Dominant language
Dart
Stars
1.2k
Forks
182
Avg merge
2d 2h
Merged PRs (30d)
88

Description

tdesign-flutter 版本

0.1.8

重现链接

No response

重现步骤/代码

Widget _buildItemWithContent(BuildContext context) { var tabController = TabController(length: 3, vsync: this); return Container( child: Column( children: [ TDTabBar( tabs: subList(3), controller: tabController, showIndicator: true, backgroundColor: Colors.white, isScrollable: false,), Container( color: Colors.white, child: TDTabBarView( children: _getTabViews(), controller: tabController, ), ) ], ), ); }

期望结果

No response

实际结果

No response

Flutter版本

No response

设备与机型信息

No response

系统版本

No response

补充说明

No response

IssueShoot

  • 预估时长:2
  • 期望完成时间:2025-4-30
  • 开发难度:低
  • 参与人数:1
  • 需求对接人:jackjflin
  • 验收标准:实现期望改造效果,提 MR并通过 验收无误
  • 备注:最终激励以实际提交 pr 并合并为准。TDesignFlutter贡献指南:https://tdesign.tencent.com/flutter/develop

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 inspecting the TDTabBarView implementation and reproduce the provided _buildItemWithContent example on tdesign-flutter 0.1.8. Trace how the tab content receives its height when placed in the Column, then verify that content is visible without a fixed-height container and that the existing tab behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.