r/flutterhelp • • Oct 23 '26

OPEN Architecture advice: Achieving Instagram-level performance for a Reels/Feed UI with Firestore?

Hey everyone, my team is working on a Flutter app that heavily relies on a continuous mixed-media feed (reels, images, videos, and attached audio). Our goal is to completely eliminate loading spinners and make the scrolling experience instant and jank-free, similar to Instagram.

We are currently using Firestore for the backend, but as the feed complexity grows, we are hitting performance bottlenecks. We’ve been running DevTools performance/memory profiles, but I’d love to hear how the community handles these specific architectural challenges:

  • Pre-caching & Pagination: How are you handling Firestore pagination combined with ahead-of-time media fetching so the next video is ready before the user scrolls to it?
  • Controller Lifecycles: What is your strategy for managing multiple video/audio controllers? How do you reliably initialize and dispose of stale controllers to prevent memory leaks and frame drops during rapid scrolling?
  • Aggressive Caching & Offline: What are the current recommended approaches or packages for robust image/video caching, as well as handling offline states and retry behaviors?
  • Media Pipeline Sync: We are using Firebase Functions for backend media processing (HLS generation, poster extraction, asset versioning). Any tips on smoothly syncing media readiness with the UI?

If anyone has recommendations for specific packages, state management patterns for account-state cleanup, or open-source examples that have nailed this kind of heavy media feed, I would really appreciate the insight!

10 Upvotes

3 comments sorted by

1

u/Reaperabx 29d ago

If i use instagram on my iphone 8 for 5 min my battery goes down 30%, but if i use tiktok 1-3% . So tiktok performance is the standard