aagarwal1012 / aagarwal1012/IntroViews-Flutter

Add animation for click button skip, next, back

Abierto
#70 0 comentarios 0 reacciones 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
Dart
Estrellas
665
Forks
140
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.