aagarwal1012 / aagarwal1012/IntroViews-Flutter

Add animation for click button skip, next, back

未關閉
#70 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
Dart
星號
665
分支
140
PR 合併指標
30 天內沒有已合併 PR

描述

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

貢獻指南

開啟貢獻指南

研究方向

The issue shows code for navigation methods (onPressedBack, onPressedNext, onPressedSkip) that call animationToPage. Look at the AnimatedPageDragger class to understand the animation system. The request is to add animation for button clicks; check existing button widgets and see how they trigger page transitions. Test by running the example app and modifying the button handlers to include animation.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
dart, flutter
領域
frontend, mobile
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。