Menu

A feed that arrives one post at a time: per-user delivery in Flutter
πŸ“°

A feed that arrives one post at a time: per-user delivery in Flutter

DEV Community: flutterΒ·Frank MilvusΒ·6 days ago
#kWyCHhPY
#devtoflutter#devto#dev#feed#card
Long article (2315 words) β€” no AI summary yet.
Reading 0:00
15s threshold

The centre tab in our app used to be a placeholder with the logo on it. It is now a feed: announcements from the team, notification activity, and short cards for what is happening in your groups. Building the scrolling list was the easy half. The hard half was deciding what a person who installed the app today should see. An announcement timeline is easy to render and surprisingly easy to get wrong: the obvious implementation has a backlog problem that only shows up for new accounts.

This post covers the delivery model behind that timeline, the three sources merged into it, and the authorization bug the photo albums exposed.

The backlog problem hiding under a simple feed

The first design everyone reaches for is a posts table with a publish_at column: filter publish_at <= now , order by time, page. It works beautifully for the people who were already there when each post was written.

Now imagine someone registers after ten announcements. They see all ten at once, newest first.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.