Implement left and right sliding interface to switch pages#112
Implement left and right sliding interface to switch pages#112RogerIn1900 wants to merge 1 commit into
Conversation
| implementation(libs.google.accompanist.pager) | ||
| implementation(libs.google.accompanist.pager.indicators) |
There was a problem hiding this comment.
@RogerIn1900 thank you for your contributions. It's a good idea to introduce pager to the UI. However, Accompainst was deprecated 2 years ago. Would you consider implementing it using the Pager in the main Compose library?
There was a problem hiding this comment.
Thank you for your feedback and pointing out this issue! So sorry am I for using this outdated component,I agree that introducing a Pager is a good idea. However, since Accompanist was deprecated two years ago and is no longer actively maintained, I plan to use the official Pager from androidx.compose.foundation.pager instead. This will ensure better compatibility with future Compose versions and access to the latest features and bug fixes. I'll keep the functionality and UI consistent with the original design.
Functionality:
Added left-right swipe functionality to the navigation bar, adapting to two navigation styles:
Implementation method:
Test situation:
Effect:
Screen_recording_20251014_142721.webm