Use lazy lists and cache sorted aircraft distances #18

Merged
brenno merged 1 commit from perf/list-aircraft-cache into main 2026-06-30 23:40:59 +00:00
Owner

Summary

  • Replace eager aerodrome and aircraft list loops with ListView.separated for lazy building.
  • Cache _sortedAircraft in state and rebuild only when the feed or location changes.

Test plan

  • flutter test (412 tests)
  • Scroll long aerodrome/aircraft lists on a device and confirm smooth scrolling
  • Change location or aircraft feed and confirm sort order updates

Depends on #17 (map cache / nearest aerodrome), already merged to main.

## Summary - Replace eager aerodrome and aircraft list loops with `ListView.separated` for lazy building. - Cache `_sortedAircraft` in state and rebuild only when the feed or location changes. ## Test plan - [x] `flutter test` (412 tests) - [ ] Scroll long aerodrome/aircraft lists on a device and confirm smooth scrolling - [ ] Change location or aircraft feed and confirm sort order updates Depends on #17 (map cache / nearest aerodrome), already merged to `main`.
Build aerodrome and aircraft rows with ListView.separated and reuse the sorted aircraft list until the feed or reference location changes.

Co-authored-by: Cursor <cursoragent@cursor.com>
brenno merged commit c5f1d00b9b into main 2026-06-30 23:40:59 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
brenno/Hiero!18
No description provided.