-
-
Notifications
You must be signed in to change notification settings - Fork 53
Implemented Shimmer effect on the Feed screen #629
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
07jasjeet
left a comment
There was a problem hiding this 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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 ??
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