⚠ This article covers a previous version of Simple Animation. The basics stay the same but class names have changed.

This was an exciting week with Google I/O. My Flutter package Simple Animations was proofed to be Flutter Web ready and the particle background demo (article) made it into to the official Flutter web samples.

Today I want to write about using a particle system along with user interaction because it was requested one reader.

Basically it’s some cheap “whack-a-mole” implementation in Flutter. Virtual moles appear for a short duration at 6 different places. When you click one mole it will split into multiple particles. After a random time they respawn again. So basically it’s just a simple reaction game.