UCSD/campus-mobile

Performance Enhancements: Lazy Loading

Opened this issue · 1 comments

Time Tracking: MA-206

Lazy loading involves loading only the components that are necessary at a given time, rather than loading everything at once. This approach can drastically reduce initial load times and memory usage.

This is done when:

  • Load heavy widgets conditionally based on user actions (i.e. Shuttle and Parking cards)
  • Use ListView.builder to lazily build its children, creating only those visible on the screen.

This issue is part of the Flutter Mobile App Performance Improvements Proposal

Heavy widgets are loaded only when the user sees them. The next issue #2070 aims to solve the speed at which these heavy widgets load.