ertgrulll / advstory

An advanced, complete story viewer for Flutter. Has support for images, videos, custom widget contents, gestures, interceptors, listeners, manipulators and much more.
https://advstory.sourcekod.com
MIT License
41 stars 33 forks source link

Sync Tray with Stories #22

Closed aytunch closed 1 year ago

aytunch commented 1 year ago
Screen Shot 2022-09-27 at 20 11 52

Let's say the user browsed the stories and quit the story view in the 7th story. We would expect the 7th story item to be positioned in the middle of the tray. Is this possible? Btw thanks a lot for this great package and awesome documentation.

ertgrulll commented 1 year ago

Makes sense, thanks for the idea and for your nice comments. I will add this feature in the weekend with #21.

BlazingFV commented 1 year ago

Makes sense, thanks for the idea and for your nice comments. I will add this feature in the weekend with #21.

thanks for caring ! can't wait to get the functionality of #21 done because it's such a pain i can't really say enough about the amazing work you've maybe i'll try to help also i'd like to see the approach you're going with ! and thanks in advance

ertgrulll commented 1 year ago

@aytunch actually it's possible right now, you can check AdvStory.player constructor and AdvStoryPlayerController from here. You need to create your own tray view, add listener to story controller and change your tray list position on skips. I didn't add docs for interceptor and player constructor. But I will add this as default behaviour,

aytunch commented 1 year ago

@ertgrulll is this merged to master? And can we see it implemented in the example project if possible? Thank you very much