You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am using your plugin, I have a list of 20 items, when I scroll to the last page it does not go to the first one as expected, it gives a red screen with this error.
RangeError (index): Invalid value: Not in inclusive range 0..19: 20
and here is the configuration of the PageTransformer
TransformerPageView(
key: _key,
scrollDirection: Axis.horizontal,
pageSnapping: true,
loop: true,
physics: BouncingScrollPhysics(),
pageController: _pageController,
transformer: AccordionTransformer(),
onPageChanged: _onPageChanged,
itemCount: questionList.length,
itemBuilder: (context, i) {
}
When I tried to comment the pageController it works fine, but I need the controller to pass it to indicators class so when I click on the indicator it will animateTo page.
The text was updated successfully, but these errors were encountered:
Hi,
I am using your plugin, I have a list of 20 items, when I scroll to the last page it does not go to the first one as expected, it gives a red screen with this error.
RangeError (index): Invalid value: Not in inclusive range 0..19: 20
and here is the configuration of the PageTransformer
TransformerPageView(
key: _key,
scrollDirection: Axis.horizontal,
pageSnapping: true,
loop: true,
physics: BouncingScrollPhysics(),
pageController: _pageController,
transformer: AccordionTransformer(),
onPageChanged: _onPageChanged,
itemCount: questionList.length,
itemBuilder: (context, i) {
}
When I tried to comment the pageController it works fine, but I need the controller to pass it to indicators class so when I click on the indicator it will animateTo page.
The text was updated successfully, but these errors were encountered: