The-ring-io / flutter_staggered_animations

Easily add staggered animations to your ListView, GridView, Column and Row children.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is it possibile to restart animation?

scognito opened this issue · comments

commented

I have a screen (screen1) with ListView and 3 elements animated (working as expected).
When I click on an item, I load a new screen using Navigator (screen2).
When I go back from screen2 to screen1, there is obviously no animation again, but I would like to have a way to restart the animation.
Is this possible?

This is not a use-case directly supported by the library.

You will need two things :

  • detect that your previous screen is resumed
  • rebuild the list so the animation is played again