calculate method
Implementation
@override
void calculate(int index, ScrollProgressInfo info) {
if (info.currentIndex == index) {
scale = 1.0 - info.progress;
return;
}
if (info.targetIndex == index) {
scale = info.progress;
return;
}
scale = 0;
}