Milad-Akarie/smooth_page_indicator

Add loop

maksimivanchuk opened this issue · 4 comments

Please, add loop for SmoothPageIndicator.
I can make loop in scroll page view, like that
PageView.builder(
__controller: pageController,
__ onPageChanged: (int page) {},
itemBuilder: (context, index) {
return _children[index % _children.length];
},
),
but for SmoothPageIndicator is not available .

any solution ?

Hi @Milad-Akarie and thanks for this lib.

Quick question, is there any way to disable the loop? I just want to get to the latest and not be able to rotate or move to first.

Thanks,

to disable the loop remove the property itemCount of the pageview.