Small details that build taste in Flutter.

curated by Kamran BekirovKamran Bekirov

Don't show the same snack bar twice

Don't show the same snack bar twice. If it's already on screen, shake it instead:

A duplicate tells the user nothing new. The shake says "this just happened again" without piling up copies of the same message.

One more detail: if that snack bar is on screen but stacked behind a newer one, bring it to the front and reset its timer, so it stays long enough to read again.

The video is from bunpod.app, an open-source app. Its expressive_snack package already handles both, plus RTL support, icons, and more. Copy it as is or adapt it to your design.

Kamran Bekirov
Kamran Bekirov

Want this level of care in your Flutter apps?

Work With Me