breaking(TIndexes): 收敛索引设计与交互契约 - #1081
Open
RSS1102 wants to merge 4 commits into
Open
Conversation
Contributor
Web DemoAPK 下载 |
Open
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
关联 #1027 中“导航 / Indexes 索引”组件任务。
💡 需求背景和解决方案
现有 Indexes 的活动索引与初始滚动位置不同步,行为配置同时存在于组件实例和 Theme,侧栏、提示及锚点样式也未形成完整的可定制视觉契约。
initialIndex,首次创建时同步活动索引与滚动位置;后续活动状态仍由滚动位置派生。sticky、stickyOffset、capsuleTheme、reverse收敛为组件实例的非空行为默认值,Theme 仅保留尺寸、颜色和字体等视觉配置。本地验证:Flutter 3.32.0 / latest 的组件 62 项与 Demo 5 项通过;Flutter 3.32.0 Linux 的 8 张 Indexes Demo + 2 张共享导航矩阵明暗严格 Golden 通过并逐张人工复核;双版本组件包与 Example 严格 analyze 零诊断;生产覆盖率 667/699 = 95.42%;Web release 与正常入口 APK 构建通过;Android 16 真机人工操作及集成测试 1/1 通过,APK 已经 ADB 持久安装并由 Launcher 启动。
📝 更新日志
breaking(TIndexes): 将吸顶、滚动方向和胶囊模式收敛为组件实例默认行为,移除 Theme 中的同义状态入口
feat(TIndexes): 新增
initialIndex初始定位能力,并补齐侧栏、提示和锚点视觉主题配置breaking(TIndexes): 调整侧栏、按压提示与锚点的默认尺寸、字体、颜色和间距
本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单
type(<scope>?): 修改描述。示例:
fix(TBottomTabBar): 修复 iconText 模式底部溢出