Tencent / Tencent/tdesign-flutter
[Indexes] 希望索引字符列表,可以对应不同的内容分组标题,比如微信的联系人tab页,右侧索引星星图标文本,对应显示“星标朋友”,置顶图标则不显示分组标题,其他的A对应A,B对应B都没问题,如果不设置映照标题,则按索引文本显示
Open
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 1.2k
- Forks
- 182
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 88
Description
这个功能解决了什么问题
希望索引字符列表,可以对应不同的内容分组标题,比如微信的联系人tab页,右侧索引星星图标,对应分组标题显示“星标朋友”,置顶图标则不显示分组标题,其他的A对应A,B对应B都没问题,如果不设置映照标题,则按索引文本显示。
解决索引和分组标题不一致的问题
你建议的方案是什么
如果不设置索引映照分组名称,则默认按索引显示;如果设置了映照分组名称,则按映照名称显示
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Indexes component entry point and review any existing index-related tests. Implement configurable mappings from index text to group titles, including titles that can be empty, while preserving the index text as the default when no mapping is provided. Done means mapped titles display for configured entries and unmapped entries retain their index text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100