TheAnkurPanchani/card_swiper

RectSwiperPaginationBuilder Settings are invalid.

Opened this issue · 0 comments

When I set the page property, nothing happens
example:
Swiper(
itemBuilder: (context, index) {
BannerAndADItemModel model = adSources[index];
return ExtendedImage.network(
model.imageURL,
fit: BoxFit.fill,
cache: true,
);
},
index: 0,
loop: adSources.length == 1 ? false : true,
indicatorLayout: PageIndicatorLayout.COLOR,
itemCount: adSources.length,
outer: true,
pagination: adSources.length == 1
? null
: const SwiperPagination(
alignment: Alignment.bottomRight,
builder: RectSwiperPaginationBuilder(
color: Colors.red,
activeColor: Colors.blue,
size: Size(10, 5),
space: 5,
activeSize: Size(10, 5))),
onTap: (index) => clickADAction(index),
);