Is it possible to make the pagination start from right to left?
child: Swiper(
itemBuilder: (context, index) {
final image = letterVowelsImages[index];
return Padding(
padding: const EdgeInsets.all(25.0),
child: Image.asset(
image,
fit: BoxFit.contain,
),
);
},
indicatorLayout: PageIndicatorLayout.COLOR,
autoplay: false,
itemCount: letterVowelsImages.length,
pagination: const SwiperPagination(
builder: DotSwiperPaginationBuilder(
color: Colors.black38,
activeColor: Colors.black,
),
),
control: const SwiperControl(
color: Colors.black,
),
),
…………………………………………..
2
Answers
I have tried another method where I just made the index: 2 (2 which is the last index item) inside the Swiper function and it worked. Now the pagination starts from right to left.
Before this code snippet, add the following line to reverse the letterVowelsImages list: