-
-
Notifications
You must be signed in to change notification settings - Fork 141
Open
Labels
enhancementNew feature or requestNew feature or request
Description
First! Thank for your package. It saves me a lot of time.
Hope I can help you with this "Request"
--> This is my code
...
void animationToPage(int page) {
nextPageIndex = page;
animatedPageDragger = AnimatedPageDragger(
slideDirection: activePageIndex > nextPageIndex
? SlideDirection.leftToRight
: SlideDirection.rightToLeft,
transitionGoal: TransitionGoal.open,
slidePercent: slidePercent,
slideUpdateStream: slideUpdateStream,
vsync: this,
);
animatedPageDragger.run();
}
...
void onPressedBack() {
animationToPage(max(0, activePageIndex - 1));
}
void onPressedNext() {
animationToPage(min(widget.pages.length - 1, activePageIndex + 1));
}
void onPressedSkip() {
animationToPage(widget.pages.length - 1);
}
...
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request