Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The transformer does not respect item Count #1

Open
omarsawalhah opened this issue May 1, 2021 · 3 comments
Open

The transformer does not respect item Count #1

omarsawalhah opened this issue May 1, 2021 · 3 comments

Comments

@omarsawalhah
Copy link

omarsawalhah commented May 1, 2021

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.

@qb20nh
Copy link

qb20nh commented Jul 25, 2022

Can you share minimum code project with exact steps? I could not reproduce. Might want to also share stack trace of error.

@vshsharma
Copy link

I am also facing the same issue, is there any fix for this.

@itsji10dra
Copy link

This issue still exists. Dynamically changing item count doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants