-
-
Notifications
You must be signed in to change notification settings - Fork 21
Added Pagination in activity screen. #3148
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
Hey there 👋,
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3148 +/- ##
==========================================
+ Coverage 46.76% 47.13% +0.37%
==========================================
Files 948 948
Lines 57845 57870 +25
==========================================
+ Hits 27049 27278 +229
+ Misses 30796 30592 -204
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
app/lib/features/activities/providers/activities_providers.dart
Outdated
Show resolved
Hide resolved
app/lib/features/activities/providers/activities_providers.dart
Outdated
Show resolved
Hide resolved
app/lib/features/activities/providers/activities_providers.dart
Outdated
Show resolved
Hide resolved
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 can't explicitly approve here because of how the providers are used to accomodate loading and pagination as they always seem abhorrent to mess with UI states (from the past experience) though I see it works based on the provided video. Perhaps @kumarpalsinh25 or @gnunicorn could also give opinions on taken approach...
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.
Although functionally this pagination looks fine in video reference, I would like to make it with proper implementation. I really doesn't like the way providers are implemented.
app/lib/features/activities/providers/activities_providers.dart
Outdated
Show resolved
Hide resolved
app/lib/features/activities/providers/activities_providers.dart
Outdated
Show resolved
Hide resolved
app/lib/features/activities/providers/activities_providers.dart
Outdated
Show resolved
Hide resolved
app/lib/features/activities/providers/notifiers/activities_notifiers.dart
Outdated
Show resolved
Hide resolved
…3 into anisha/activity-pagination
… anisha/activity-pagination
Fixes #3146
This PR adds pagination support for activity items. The first 100 items are loaded initially, and an additional 100 items are fetched when the user scrolls to the end of the list.
A loading indicator is displayed at the bottom while new items are being loaded.
Reference video:
Screen.Recording.2025-06-30.at.1.15.12.PM.mov