horizontal method
Implementation
@override
Widget horizontal(double aniValue, int index, double page, Widget child) {
if (page == index) {
return child;
} else if (page > index) {
return super.horizontal(aniValue, index, page, child);
} else {
return ClipRect(
child: Align(
widthFactor: aniValue,
child: super.horizontal(aniValue, index, page, child),
),
);
}
}