Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TDButton的文字没有垂直居中,设置背景颜色后格外明显[组件名称] 描述问题的标题 #35

Closed
jgyhc opened this issue Feb 1, 2024 · 7 comments

Comments

@jgyhc
Copy link

jgyhc commented Feb 1, 2024

tdesign-flutter 版本

0.1.2

重现链接

No response

重现步骤

38825994C07CB14E78FEA2CEA899DCE2

期望结果

希望可以解决不垂直居中的问题

实际结果

No response

Flutter版本

No response

设备与机型信息

No response

系统版本

No response

补充说明

No response

Copy link
Contributor

github-actions bot commented Feb 1, 2024

👋 @jgyhc,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@yangtianxia
Copy link

遇到相同问题,好像是TDText组件导致的,不知道什么是否可以修复?

image

@Luozf12345
Copy link
Collaborator

请问是在什么设备上运行的呢?Flutter官方没有支持中文居中能力,TD之中提供了TDTextConfiguration和CustomTextPaddingConfig来运行修改内部填充比例,使文字居中,不过部分机型(比如三星)的比例可能与其他机型不一样,需要自己处理。

Copy link
Contributor

github-actions bot commented Apr 4, 2024

这个 Issue 被标记为了过时 stale ,因为它已经持续 30 天没有任何活动了。删除 stale 标签或评论,否则将在 7 天内关闭。

@github-actions github-actions bot added the Stale label Apr 4, 2024
@Luozf12345
Copy link
Collaborator

应该是Flutter3.16以后得渲染引擎改变导致的问题,0.1.4版本会先添加一个禁用forceVerticalCenter功能的开关,让TD的字体可以与官方保持一致。文本居中的通用适配方案后面再看下怎么处理吧

@github-actions github-actions bot removed the Stale label Apr 7, 2024
@Luozf12345 Luozf12345 mentioned this issue Apr 8, 2024
16 tasks
Copy link
Contributor

github-actions bot commented May 7, 2024

这个 Issue 被标记为了过时 stale ,因为它已经持续 30 天没有任何活动了。删除 stale 标签或评论,否则将在 7 天内关闭。

@github-actions github-actions bot added the Stale label May 7, 2024
Copy link
Contributor

此 Issue 被自动关闭,因为它自被标记为过时 stale 以来已闲置 7 天。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants