Activity Feed

Loading preview

Starting the Flutter app

Timeline with vertical connector, activity icons

Get the source

Add it to your project

Copies the Dart source into your app, so you own it. Flutter SDK only, no extra packages.

First time? Run dart pub global activate fluttertemplates_dev, or read the CLI guide.

How it works

Rows form a vertical timeline. IntrinsicHeight lets the connector line, an Expanded Container, stretch to match the row, and it’s skipped on the final item. Entries in _activities only hold an icon and text, so nothing says who acted or when. The dot color indexes Colors.primaries with a modulo, so it repeats on long lists.

Adapting it

  • Add actor, timestamp and target fields to _activities before connecting a feed.
  • Map colors from the activity type instead of the row index.
  • Watch IntrinsicHeight costs on long lists; a fixed row height would avoid the extra layout pass.