-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
I found that it would automatically scroll several times the first time #73
Comments
I also encountered continuous scrolling when loading for the first time, |
Same problem, did you find a solution? |
按你的办法解决了,谢谢 |
when the data is not null,load the widget,problem solved. |
Same problem here when putting Swiper inside a Sliver widget any solution ? |
When the data is empty, this problem occurs. My solution is to not display the component when the data is empty. Once the data is obtained, the component can be displayed. You can use a ternary expression to check this. |
遇到同样问题,首次打开,swiper那里来回跳 |
我尝试了各种种方案,感觉可能和使用getx有关系。但是也没定位问题。
最后无奈换了个插件。
…---- 回复的原邮件 ----
| 发件人 | ***@***.***> |
| 日期 | 2024年03月26日 16:11 |
| 收件人 | ***@***.***> |
| 抄送至 | Jason ***@***.***>***@***.***> |
| 主题 | Re: [TheAnkurPanchani/card_swiper] I found that it would automatically scroll several times the first time (Issue #73) |
遇到同样问题,首次打开,swiper那里来回跳
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I obtained the data list through the backend interface, and when binding the card swiper, I found that it would automatically scroll several times the first time before stopping at the index position. This is why and how to avoid this problem, so that it should not automatically scroll a few times and directly locate at the index position the first time
when loop = true;
This is the log of index changes that I output,
Finally locate at index=2
I/flutter (23982): spwiere index , 0
I/flutter (23982): spwiere index , 0
I/flutter (23982): spwiere index , 4
I/flutter (23982): spwiere index , 4
I/flutter (23982): spwiere index , 1
I/flutter (23982): spwiere index , 1
I/flutter (23982): spwiere index , 4
I/flutter (23982): spwiere index , 2
I/flutter (23982): spwiere index , 5
I/flutter (23982): spwiere index , 5
I/flutter (23982): spwiere index , 2
I/flutter (23982): spwiere index , 5
I/flutter (23982): spwiere index , 0
I/flutter (23982): spwiere index , 3
I/flutter (23982): spwiere index , 3
I/flutter (23982): spwiere index , 5
I/flutter (23982): spwiere index , 4
I/flutter (23982): spwiere index , 0
I/flutter (23982): spwiere index , 5
I/flutter (23982): spwiere index , 2
I/flutter (23982): spwiere index , 5
I/flutter (23982): spwiere index , 0
I/flutter (23982): spwiere index , 1
I/flutter (23982): spwiere index , 5
I/flutter (23982): spwiere index , 2
I/flutter (23982): spwiere index , 3
I/flutter (23982): spwiere index , 4
I/flutter (23982): spwiere index , 5
I/flutter (23982): spwiere index , 0
The text was updated successfully, but these errors were encountered: