We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
In my code, the data.center is not showing the correct indexes, sometimes it's even showing the same center index for different pages.
SnapList( padding: EdgeInsets.only( left: (screenSize.width - cardSize.width) / 2), sizeProvider: (index, data) => cardSize, separatorProvider: (index, data) => Size(10.0, 10.0), positionUpdate: (int index) { print("Current Index: ${index}/${pageCards.length}"); if (index == pageCards.length - 1) { // loadMore(); } }, builder: (context, index, data) { print("###########################"); print("Index: ${index}"); print("Center: ${data.center}"); print("Next: ${data.next}"); print("Progress: ${data.progress}"); return ProfileCard(pageCards[index], image1, offset, () {}, dismissCard); }, count: pageCards.length, )
The text was updated successfully, but these errors were encountered:
I think its because the builder is not being updated with the latest center index when the scroll event is finished. Im working on a fix
Sorry, something went wrong.
I might be the problem, but the data provided to the builder is all wrong values. Can someone confirm?
@lambasoft I got same your problem that I mentioned at #11
No branches or pull requests
In my code, the data.center is not showing the correct indexes, sometimes it's even showing the same center index for different pages.
The text was updated successfully, but these errors were encountered: