You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
initStoryPages(int index) {
index = index;
for (int i = 0; i < widget.status[index].photoUrl.length; i++) {
storyItems.add(StoryItem.pageImage(
url: widget.status[index].photoUrl[i], controller: controller));
}
}
StoryView(
controller: controller,
storyItems: storyItems,
onComplete: () {
print('current state ${controller.playbackNotifier.value}'); // here it is printed as paused
setState(() {
index += 1;
if (storyItems.isNotEmpty) {
storyItems.clear();
}
if (index < widget.status.length) {
initStoryPages(index);
}
if (index >= widget.status.length) {
Navigator.pop(context);
}
});
},
First story is loaded from initstate and then second story from status list index in oncomplete method, after loading it gets paused, i tried controller.play(), nothing happens , if i click on the image then story resumes. please help me how to resolve this issue.
The text was updated successfully, but these errors were encountered:
@OverRide
void initState() {
super.initState();
}
initStoryPages(int index) {
index = index;
for (int i = 0; i < widget.status[index].photoUrl.length; i++) {
storyItems.add(StoryItem.pageImage(
url: widget.status[index].photoUrl[i], controller: controller));
}
}
StoryView(
controller: controller,
storyItems: storyItems,
onComplete: () {
print('current state ${controller.playbackNotifier.value}'); // here it is printed as paused
First story is loaded from initstate and then second story from status list index in oncomplete method, after loading it gets paused, i tried controller.play(), nothing happens , if i click on the image then story resumes. please help me how to resolve this issue.
The text was updated successfully, but these errors were encountered: