Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First item is getting played thrice #156

Closed
rahuldubey093 opened this issue Jan 7, 2023 · 1 comment
Closed

First item is getting played thrice #156

rahuldubey093 opened this issue Jan 7, 2023 · 1 comment

Comments

@rahuldubey093
Copy link

Hello,

Whenever I open the stories, the first story's onStoryShow: (StoryItem storyItem) {} is called 3 times. It happens for whichever story you open for the first time, from the second story onwards, it's called single time only.

I have checked the parent widgets, they are never being called 3 times, it's only happening inside onStoryShow() callback. Also, I have checked the solution in #14 but I am already following the same practice of defining the storyItems in initstate.

Here are some logs with timestamps:
flutter: onStoryShow() -> storyID: 18. timestamp: 2023-01-07 16:10:02.302414.
flutter: onStoryShow() -> storyID: 18. timestamp: 2023-01-07 16:10:02.359484.
flutter: onStoryShow() -> storyID: 18. timestamp: 2023-01-07 16:10:02.600755.

Please help.

@rahuldubey093
Copy link
Author

I have found the solution to this. First of all, my apologies, the issue is not with the plugin. But I had a Hero widget as a parent, and though I tested the parent widgets, the Hero widget somehow got missed and it's the one getting called 3 times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant