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

Go Next and Previous Screen with button #16

Open
CR-97 opened this issue Jul 24, 2019 · 1 comment
Open

Go Next and Previous Screen with button #16

CR-97 opened this issue Jul 24, 2019 · 1 comment

Comments

@CR-97
Copy link

CR-97 commented Jul 24, 2019

How can i go to next or previous screen by implement the button

@chrystoffer
Copy link

final _controller = new TransformerPageController(
initialPage: 0,
itemCount: 2,
loop: false,
);

TransformerPageView(
pageController: _controller,
....
);

_controller.previousPage(
duration: Duration(seconds: 4),
curve: Curves.elasticOut,
);

_controller.nextPage(
duration: Duration(seconds: 4),
curve: Curves.elasticOut,
);

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

2 participants