before SmoothPageIndicator works fine with CarouselSlider since it just needs an activeIndex, but the current version of SmoothPageIndicator need a Pagecontroller, and what I have is a CarouselController, how could I transfer this CarouselController to a pagecontroller?
SmoothPageIndicator(
controller: _pageController // here I only have a CarouselController
count: controller.photoFrameList.length + 1,
effect: WormEffect(
activeDotColor: AppColors.sadColor,
dotColor: AppColors.sadColor.withOpacity(0.4),
dotHeight: 8,
dotWidth: 8,
type: WormType.thin,
// strokeWidth: 5,
),
),
thank you!
I checked the changelog, the writer create another api at [0.2.0] AnimatedSmoothIndicator which does not need PageController
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.