flutter swiper page indicator 1

flutter swiper page indicator

 pagination: new SwiperPagination(
                alignment: Alignment.bottomCenter,
                builder: new DotSwiperPaginationBuilder(
                    color: Colors.grey, activeColor: Color(0xff38547C)),
              ),
              control: new SwiperControl(
                color: Color(0xff38547C),
              ),

Here is what the above code is Doing:
1. We are creating a new SwiperController object and assigning it to the controller property of the Swiper widget.
2. We are creating a new SwiperPagination object and assigning it to the pagination property of the Swiper widget.
3. We are creating a new SwiperControl object and assigning it to the control property of the Swiper widget.

Similar Posts