Conversation
Contributor
Web DemoAPK 下载 |
RSS1102
marked this pull request as ready for review
September 26, 2026 21:20
9 of 16 tasks
RSS1102
marked this pull request as draft
September 29, 2026 10:45
Member
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

🤔 这个 PR 的性质是?
🔗 相关 Issue
关联已关闭的设计对齐 Issue #1027;Token 标准化无关联 Issue。原 #1147 的提交历史已并入本 PR。
💡 需求背景和解决方案
radiusCircle保留 Flutter 的 9999dp 几何表达。逐项差异见 Token Spec。radiusSmall。iconTextLayout: TTabBarIconTextLayout.inline(默认仍为stacked);点击项显示“第 N 项”。移除centerDistance、showTopBorder、topBorder、placeholder,将背景、栏高、分隔线和选中背景等视觉值交由TTabBarThemeData唯一控制。调用方需按迁移清单修改旧参数。TText的单实例视觉统一为style,保留font作为 TDesign 字体 Token 预设,删除fontWeight/fontFamily/textColor/isTextThrough/lineThroughColor分散参数;子树默认仍由TTextThemeData.textStyle提供。SwipeCell 逐项外观归TSwipeCellAction、Theme 只保留共享actionPadding;builder与全部内置视觉参数互斥,release 构建也会拒绝冲突配置,避免无效配置被静默忽略。Popup 蒙层 alpha 归颜色,动画时长归单次 Options。上述公开 API 迁移属于 breaking。本地 Flutter 3.32.0/3.47.0 组件及 Example 严格分析均 0 issue,两版相关功能测试各 249/249,3.32.0 全部非 Golden 文件 2736/2736;固定 Linux 3.32.0 临时副本中相关组件 Golden 7/7 与 Text/SwipeCell/Popup Demo 40/40 无更新通过。前一 head8b96bb12的远端双版本分析与功能测试、Linux Golden、APK/iOS/Web 构建、Autofix、预览及扫描均已通过;不能将其直接视为当前 head 的结果。补充的 SwipeCell 互斥修复在本地 3.32.0/3.47.0 各通过 27 项聚焦测试与严格分析,3.32.0 的组件清单测试 31/31、生产源码覆盖率 96.21%。PR 仍为 Draft;CLA 因autofix-ci[bot]未签署而 Pending,RSS1102 已签署。+2与叠放方向。固定 Linux 3.32.0 的 Avatar 浅/暗 Golden 2/2 无更新通过;Flutter 3.32.0/3.47.0 的 Avatar 组件测试各 39/39、Demo 测试各 4/4,生产源码覆盖率 197/202 = 97.52%。组件回归调度器自测 19/19 已通过;当前 head2cc14e43的远端 CI 结果以本次运行的检查项为准。Linux / Flutter 3.32.0 公开 Demo 快照(TabBar/Tag/Text 沿用
7023eb03;Avatar 来自0ee62d67):📝 更新日志
breaking(theme): 调整全局语义 Token 的名称与默认颜色、字体、间距和圆角;依赖旧默认视觉或旧 Token 名称的应用需复核主题配置。
breaking(components): 移除多个组件实例与 Theme 的同义配置入口;现有调用须按迁移清单改为唯一实例参数或组件 Theme 字段。
breaking(TText): 未指定字体时,默认正文由 16dp/24dp 改为 14dp/22dp。
breaking(TText): 移除实例
fontWeight/fontFamily/textColor/isTextThrough/lineThroughColor;单实例文字样式改用style: TextStyle(...),font仍选择字体 Token 预设。breaking(TTag): 调整默认填充、描边、方形圆角和关闭图标的 Token 来源;方形圆角默认读取
radiusSmall。feat(TTag): 支持在组件 Theme 中分别定制 danger、success 基础色和 success 浅色填充。
breaking(TTabBar): 调整默认图标与项布局,移除
centerDistance、showTopBorder、topBorder、placeholder及重复的实例视觉参数。feat(TTabBar): 新增
iconTextLayout,支持图标与文字左右排列。breaking(TAvatar, TPopover): 移除重复的视觉配置入口,单实例定制改用局部组件 Theme。
breaking(TAvatarGroup): 调整头像组默认描边、阴影及可见成员的尺寸继承;依赖旧头像缩放或描边效果的应用需复核显示。
breaking(TSideBar): 移除组件 Theme 的
selectedColor;改用selectedTextStyle: TextStyle(color: ...)统一设置选中文字、图标和指示线。breaking(TSwipeCell): 移除操作项外观的重复 Theme 字段,逐项使用
TSwipeCellAction配置;spacing改名为iconLabelSpacing,builder与内置视觉参数混用会报错。breaking(TPopup): 移除独立蒙层透明度和 Theme 动画时长;透明度写入颜色 alpha,动画时长使用
TPopupOptions.animationDuration。本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单
type(<scope>?): 修改描述。示例:
fix(TBottomTabBar): 修复 iconText 模式底部溢出