-
Notifications
You must be signed in to change notification settings - Fork 107
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
Comments
👋 @jgyhc,感谢给 TDesign 提出了 issue。 |
请问是在什么设备上运行的呢?Flutter官方没有支持中文居中能力,TD之中提供了TDTextConfiguration和CustomTextPaddingConfig来运行修改内部填充比例,使文字居中,不过部分机型(比如三星)的比例可能与其他机型不一样,需要自己处理。 |
这个 Issue 被标记为了过时 stale ,因为它已经持续 30 天没有任何活动了。删除 stale 标签或评论,否则将在 7 天内关闭。 |
应该是Flutter3.16以后得渲染引擎改变导致的问题,0.1.4版本会先添加一个禁用forceVerticalCenter功能的开关,让TD的字体可以与官方保持一致。文本居中的通用适配方案后面再看下怎么处理吧 |
这个 Issue 被标记为了过时 stale ,因为它已经持续 30 天没有任何活动了。删除 stale 标签或评论,否则将在 7 天内关闭。 |
此 Issue 被自动关闭,因为它自被标记为过时 stale 以来已闲置 7 天。 |
tdesign-flutter 版本
0.1.2
重现链接
No response
重现步骤
期望结果
希望可以解决不垂直居中的问题
实际结果
No response
Flutter版本
No response
设备与机型信息
No response
系统版本
No response
补充说明
No response
The text was updated successfully, but these errors were encountered: