From cd642c7685dd3d858b210fae60303528834b7bf0 Mon Sep 17 00:00:00 2001 From: jsharkc <1773867204@qq.com> Date: Thu, 29 Aug 2019 13:39:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20RectSwiperPaginationBuilde?= =?UTF-8?q?r=20=E4=B8=8D=E6=98=BE=E7=A4=BA=E6=8C=87=E7=A4=BA=E5=99=A8?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/src/swiper_pagination.dart | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/src/swiper_pagination.dart b/lib/src/swiper_pagination.dart index a866de2..50c7038 100644 --- a/lib/src/swiper_pagination.dart +++ b/lib/src/swiper_pagination.dart @@ -115,14 +115,12 @@ class RectSwiperPaginationBuilder extends SwiperPlugin { for (int i = 0; i < itemCount; ++i) { bool active = i == activeIndex; Size size = active ? this.activeSize : this.size; - list.add(SizedBox( + list.add(Container( width: size.width, height: size.height, - child: Container( - color: active ? activeColor : color, - key: Key("pagination_$i"), - margin: EdgeInsets.all(space), - ), + color: active ? activeColor : color, + key: Key("pagination_$i"), + margin: EdgeInsets.all(space), )); }