diff --git a/lib/src/swiper_pagination.dart b/lib/src/swiper_pagination.dart index a866de2..6934ab1 100644 --- a/lib/src/swiper_pagination.dart +++ b/lib/src/swiper_pagination.dart @@ -217,15 +217,13 @@ class DotSwiperPaginationBuilder extends SwiperPlugin { } if (config.scrollDirection == Axis.vertical) { - return new Column( + return new Wrap( key: key, - mainAxisSize: MainAxisSize.min, children: list, ); } else { - return new Row( + return new Wrap( key: key, - mainAxisSize: MainAxisSize.min, children: list, ); }