Menu

The chat list should move like the chat: animated message previews
πŸ“°

The chat list should move like the chat: animated message previews

DEV Community: flutterΒ·Frank MilvusΒ·16 days ago
#lMbVRYWE
#devtoflutter#devto#dev#emoji#preview
Long article (1979 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Animated chat previews Flutter draws in the chats list are the first thing a person sees after opening the app, yet for a long time ours were plain text. The conversation itself had motion β€” animated emoji in bubbles β€” while the list that summarised it stayed completely still. Fixing that turned out to be less about animation and more about parsing, prefixes and two tabs that quietly render the same rows. This is what the second pass taught us, and why the safest implementation is the one that refuses to animate too much.

The list was the last static surface

The message bubble is the easy case. A message is either one emoji or it is not, so the bubble can make a single decision and swap one glyph for one animation.

A preview is different. It is a compressed line of text that must communicate a whole message in the width of a row. It can be a single emoji, an emoji in the middle of a sentence ( nice πŸ”₯ ), several emoji in a row, a sender prefix, or a draft.…

Continue reading β€” create a free account

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