transform abstract method
if (page == index) {
/// 静止状态
} else if (page > index) {
/// 滑动状态:当前要离开的页面 (aniValue 1-0)
} else {
/// 滑动状态:下一个要进来的页面 (aniValue 0-1)
}
Implementation
Widget transform(int index, double page, double aniValue, Widget child);