aagarwal1012 / aagarwal1012/IntroViews-Flutter

Add animation for click button skip, next, back

Aperta
#70 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Dart
Stelle
665
Fork
140
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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);
}
...
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.