Skip to content

feat: add horizontal pager for swipe navigation between tabs#16

Merged
jvsena42 merged 1 commit into
mainfrom
feat/horizontal-pager
Mar 29, 2026
Merged

feat: add horizontal pager for swipe navigation between tabs#16
jvsena42 merged 1 commit into
mainfrom
feat/horizontal-pager

Conversation

@jvsena42
Copy link
Copy Markdown
Owner

Summary

Add swipe gesture navigation between tabs using HorizontalPager on Android and TabView with .page style on iOS. The bottom bar is lifted out of individual screens into the root App/iOSApp so it stays fixed while page content swipes underneath.

Changes

  • Replace when/mutableStateOf tab switching in App.kt with HorizontalPager inside a Box layout, with WornBottomBar overlaid at the bottom
  • Replace switch tab switching in iOSApp.swift with TabView(.page) and WornBottomBar placed outside the TabView
  • Remove WornBottomBar from all 5 screen Scaffolds (Android) and all 5 screen views (iOS)
  • Clean up unused onTabSelected parameters from scaffold-level functions
  • Add bottom padding to the Wardrobe FAB so it sits above the overlaid bottom bar
  • Set BgPage background on the root Box to prevent white showing behind the bottom bar

Test plan

  • Swipe left/right between all 5 tabs — animation should be smooth and bottom bar should remain fixed
  • Tap bottom bar tabs — should animate to the correct page
  • Verify the bottom bar active indicator follows both swipe and tap navigation
  • Verify the Wardrobe FAB is fully visible above the bottom bar
  • Cross-tab navigation still works (e.g., "Go to Settings" from Try It and Gaps screens)
  • Test on both phone and tablet form factors

Checklist

  • ./gradlew detekt passes
  • Tested on Android
  • Tested on iOS
  • Updated documentation (if applicable)

@jvsena42 jvsena42 enabled auto-merge March 29, 2026 18:59
@jvsena42 jvsena42 merged commit c3dd2aa into main Mar 29, 2026
1 check passed
@jvsena42 jvsena42 deleted the feat/horizontal-pager branch March 29, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant