diff --git a/lib/src/custom_layout.dart b/lib/src/custom_layout.dart index 8b1b555..cb21cbf 100644 --- a/lib/src/custom_layout.dart +++ b/lib/src/custom_layout.dart @@ -402,6 +402,7 @@ class _CustomLayoutSwiper extends _SubSwiper { required int itemCount, Axis? scrollDirection, required SwiperController controller, + AxisDirection? axisDirection, }) : super( loop: loop, onIndexChanged: onIndexChanged, @@ -414,7 +415,9 @@ class _CustomLayoutSwiper extends _SubSwiper { index: index, itemCount: itemCount, controller: controller, - scrollDirection: scrollDirection); + scrollDirection: scrollDirection, + axisDirection: axisDirection + ); final CustomLayoutOption option; diff --git a/lib/src/swiper.dart b/lib/src/swiper.dart index 043b746..1c5e2d7 100644 --- a/lib/src/swiper.dart +++ b/lib/src/swiper.dart @@ -569,6 +569,7 @@ class _SwiperState extends _SwiperTimerMixin { onIndexChanged: _onIndexChanged, controller: _controller, scrollDirection: widget.scrollDirection, + axisDirection: widget.axisDirection, ); } else { return const SizedBox.shrink();