question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

animateToPage and _animatePreviousPage not working

See original GitHub issue
_animatePreviousPage()
animateToPage(0)

above two methods are not working properly when isLooped = {false} if I set this to isLooped = {true} then it’s works fine.

But I need isLooped = {false} and also need that method also. How can I solve my problem?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
phil-rcommented, May 24, 2018

Great! Thanks for creating an issue!

2reactions
phil-rcommented, May 21, 2018

Hey 👋 You can try out this example: https://snack.expo.io/@phil/carousel-animate-to-page-example

The key parts are: ref={ref => (this.carousel = ref)} in Carousel props onAnimate={i => this.carousel.animateToPage(i)} in Page props

Read more comments on GitHub >

github_iconTop Results From Across the Web

PageView.animateToPage not working for elasticInOut ...
I think this happens with any curve that initially produces a negative value (like Curves.elasticInOut). I can't pinpoint the exact line (I ...
Read more >
[Android] PageView animateTo and nextPage do not work ...
On Linux and Web: The 1st page wont scroll using FAB. This only happens on using the PageController.animateTo() and nextPage() method, jump() ...
Read more >
animateToPage method - PageController class
API docs for the animateToPage method from the PageController class, for the Dart programming ... The duration and curve arguments must not be...
Read more >
jumpToPage , nextPage , previousPage , animateToPage ...
jumpToPage , nextPage , previousPage , animateToPage PageController Flutter.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found