Library tab indicator should follow the live swipe
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
Research direction
Start in LibraryScreen.kt and trace how its S2TabRow connects to the pager state and tab positions. Check the Material tabs-with-pager pattern and the available PrimaryScrollableTabRow indicator APIs in M3 1.5.0-alpha29. Done means the indicator follows the swipe continuously while tapping a tab still animates the pager.
Written by the indexing model from the issue text.
Description
Library's section tabs (S2TabRow over PrimaryScrollableTabRow, LibraryScreen.kt) move the indicator to pagerState.targetPage when a swipe settles, rather than tracking the pager's live offset as the finger drags. Material's tabs-with-pager pattern slides the indicator with the swipe.
M3 1.5.0-alpha29 offers no fractional-offset API on PrimaryScrollableTabRow, so this needs a custom indicator that lerps between the current and next tab positions using pagerState.currentPageOffsetFraction.
Acceptance: dragging between Library sections slides the indicator continuously; tapping a tab still animates the pager.
- Dominant language
- Kotlin
- Stars
- 232
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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.
More from timusus/Shuttle2
-
design
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
enhancement impact:U2 P3 reach:R1 size:S
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 52/100
-
idea
Difficulty 5/5 Over a week Newbie friendliness 25/100
All issues in timusus/Shuttle2
Similar issues
-
staticAssetsPath follows symlinks outside the directory on WindowsPossibly taken @ybelMekk claimed this today. Openbug security findings
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
navikt/mock-oauth2-server#1132 ·
Maintainers usually reply within 1 day
-
performance solver
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
a:plugin-description
Difficulty 1/5 Under an hour Newbie friendliness 76/100
gradle/plugin-portal-requests#319 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
SimonHalvdansson/Harmonic-HN#399 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100