Skip to content
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

Implemented Lazy Loading #2

Merged
merged 19 commits into from
Sep 22, 2024
Merged

Implemented Lazy Loading #2

merged 19 commits into from
Sep 22, 2024

Conversation

klortiz13
Copy link
Collaborator

@klortiz13 klortiz13 commented Sep 20, 2024

Implemented Lazy Loading strategies to the following files:

  1. lib/ui/availability/availability_card.dart
  2. lib/ui/availability/availability_detail_view.dart
  3. lib/ui/availability/availability_display.dart
  4. lib/ui/classes/upcoming_classes.dart
  5. lib/ui/common/card_container.dart
  6. lib/ui/dining/dining_list.dart
  7. lib/ui/employee_id/employee_id_card.dart
  8. lib/ui/finals/finals_card.dart
  9. lib/ui/mystudentchart/mystudentchart.dart
  10. lib/ui/news/news_list.dart
  11. lib/ui/notices/notices_card.dart
  12. lib/ui/parking/parking_card.dart
  13. lib/ui/shuttle/shuttle_card.dart
  14. lib/ui/shuttle/shuttle_display.dart
  15. lib/ui/student_id/student_id_card.dart
  16. lib/ui/triton_media/triton_media_detail_view.dart
  17. lib/ui/triton_media/triton_media_list.dart
  18. lib/ui/triton_media/triton_media_tile.dart
  19. lib/ui/weather/weather_card.dart
  20. lib/ui/wifi/wifi_card.dart

Overview of Changes:

Lazy Loading Implementation:

The changes primarily introduce lazy loading to optimize the performance of the campus app. This involves adjusting how data is fetched and presented, ensuring that content is loaded progressively as the user scrolls, rather than loading all content at once.
I modified all widgets that could use ListView.builder to support lazy loading, improving memory usage and responsiveness.

Error Handling and UI Feedback:

The changes also include updates to the user interface to show loading indicators or error messages when lazy loading encounters issues.

More CachedNetworkImage Implementation:

I found some files along the way that were independent from ImageLoader, so I made them use CachedNetworkImage instead of image.network

@klortiz13 klortiz13 changed the title fixed some small ui Implemented Lazy Loading Sep 20, 2024
@klortiz13 klortiz13 self-assigned this Sep 22, 2024
@klortiz13 klortiz13 added the enhancement New feature or request label Sep 22, 2024
@klortiz13 klortiz13 marked this pull request as ready for review September 22, 2024 18:02
@klortiz13 klortiz13 merged commit ee3e22d into experimental Sep 22, 2024
@klortiz13 klortiz13 deleted the kristhian-lazy-loading branch September 22, 2024 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request waiting approval
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant