blackmann / story_view

Story view for apps with stories.
BSD 3-Clause "New" or "Revised" License
422 stars 349 forks source link

Multiple users story plays twice on page change #105

Open spatel2212 opened 3 years ago

spatel2212 commented 3 years ago

https://user-images.githubusercontent.com/76149392/118134886-07ef2b80-b420-11eb-87dc-b35328db02a4.mp4 https://user-images.githubusercontent.com/76149392/118135342-877cfa80-b420-11eb-938f-c9ab9e072f36.mp4

I have a project which accepts story behaviour like Facebook, Instagram, WhatsApp. I have used this pub and it works fine for one user. I have put the story controller in a page view controller for multiple users' stories but when I go back to previous user's story on swipe then the story gets played twice.

I have tried multiple story controllers for as many users but no success. Can you please assist here how to solve this issue and achieve the behaviour like in WhatsApp or Instagram?

rohitmagic10 commented 3 years ago

Make your stories a global variable and make sure the build method is not called again and again.

hwasiq15 commented 3 years ago

Yes same issuee. I want to change stories for multiple user on swipe.