WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@nirvan73
Copy link
Contributor

@nirvan73 nirvan73 commented Dec 6, 2025

FIXES #616

This PR implements the shimmer effect for the loading state on the Feed Screen for each section (My Feed , Follow Listens , Similar Listens) and have synced it with the pull-to-refresh implementation also.

Screen Recording

Here is the Screen Recording for reference :-

Feed_Shimmer.mp4

Copy link
Collaborator

@07jasjeet 07jasjeet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of the stuff looks good, just a few changes.

shimmerInstance: Shimmer,
uriHandler: UriHandler = LocalUriHandler.current
) {
// Since, at most one drop down will be active at a time, then we only need to maintain one state variable.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try to maintain existing comments. Here, we can get rid of this as code makes the intent clear anyways.

Copy link
Contributor Author

@nirvan73 nirvan73 Dec 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I must have removed it by mistake , i'll be shaper next time about preserving existing comments 👍

goToArtistPage = goToArtistPage
)
if (inRefreshingState) {
items(4) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add more items here, such that we are able to fill up the whole screen? In order to fill the whole screen, you can measure the layout using subcompose layout and then use BoxWithConstraints (outside Lazy column) to get max available height.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so should i do the same with the other tabs as well ??

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.

Implement Shimmer Effect for Feed and Profile Screen

2 participants