vSwiper method
Extension for using VxSwiper vertically directly with list of widgets
Implementation
Widget vSwiper({
Key? key,
double? height,
double aspectRatio = 16 / 9,
bool enableInfiniteScroll = true,
bool enlargeCenterPage = false,
Function(int index)? onPageChanged,
ScrollPhysics? scrollPhysics,
Axis scrollDirection = Axis.vertical,
}) =>
VxSwiper(
items: this,
height: height,
aspectRatio: aspectRatio,
enableInfiniteScroll: enableInfiniteScroll,
enlargeCenterPage: enlargeCenterPage,
onPageChanged: onPageChanged,
scrollPhysics: scrollPhysics,
scrollDirection: scrollDirection,
);