social_media_widgets icon indicating copy to clipboard operation
social_media_widgets copied to clipboard

How can I set up a timer to automatically change to the next screen?

Open pcmushthaq opened this issue 4 years ago • 10 comments

Hi, Thanks for the package . It's working fine. But I'd like to know if I can add a timer so I can automatically change it to next screen after a while

pcmushthaq avatar Jun 10 '20 10:06 pcmushthaq

Not available right now, but this can be added.

https://stackoverflow.com/questions/56540074/how-to-jump-to-another-page-with-pageview-flutter

  1. We can ask the user the pass a page controller and user can use that to go to next page
  2. Create a custom controller

I prefer custom controller.

I checked your pull request and its looks like you added back button to the example project. I think the option to add back button should be left to the user and should not be added to the library.

GursheeshSingh avatar Jun 10 '20 10:06 GursheeshSingh

Yeah you are right I'm new to GitHub so I was just trying out these pull requests etc., never mind ..

Thanks I'll look into that

pcmushthaq avatar Jun 10 '20 10:06 pcmushthaq

Welcome!

The back button would added to each screen if I accept the pull request.

Also If we add a timer, we should also add something to show the timer progress like the instagram or whatsapp or snapchat timer. You can try that and send a pull request

GursheeshSingh avatar Jun 10 '20 10:06 GursheeshSingh

We definitely need a controller for both snapchat circular dismissal widget and Instagram story page view widget. Let's say I have a video playing in Instagram page view and I want it to jump to next video automatically when video is finished, without user swiping. I hope you can embed controllers for these. insta_controller.jumpToIndex(int index) insta_controller.nextPage() insta_controller.previousPage()

snapchat_controller.dismiss()

aytunch avatar Jun 23 '20 11:06 aytunch

Sure I will work on that.

GursheeshSingh avatar Jun 23 '20 14:06 GursheeshSingh

I am waiting for the version of "jump to next video" automatically too. It would be grateful if it can be done asap

denniswhchung avatar Aug 28 '20 03:08 denniswhchung

I think it would be better to just have the jumpToNext() and let you control when to jump to next page.

Its almost done.

I haven't worked on the project for a while, so updates have been less.

GursheeshSingh avatar Aug 28 '20 08:08 GursheeshSingh

@pcmushthaq you can fix this issue? you can share your solution?

gabofer82 avatar Jun 09 '21 19:06 gabofer82

@pcmushthaq you can fix this issue? you can share your solution?

I ended up using my own implementation, I can't find the source code now. I think this package is no longer maintained, you can learn a little bit about PageViews, then it is not that hard to implement.

pcmushthaq avatar Jun 10 '21 05:06 pcmushthaq

I ended up using my own implementation, I can't find the source code now. I think this package is no longer maintained, you can learn a little bit about PageViews, then it is not that hard to implement.

Thankyou!, Finally I do that....

gabofer82 avatar Jun 10 '21 14:06 gabofer82