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

[Bug report] 水平方向的Listview无法滚动到指定的index #110

Open
homgwu opened this issue Jan 18, 2025 · 1 comment
Open

[Bug report] 水平方向的Listview无法滚动到指定的index #110

homgwu opened this issue Jan 18, 2025 · 1 comment
Assignees

Comments

@homgwu
Copy link

homgwu commented Jan 18, 2025

Version

1.24.0

Platforms

Windows

Device Model

windows 11

flutter info

~

How to reproduce?

水平方向的Listview,我用ListObserverController.animateTo,jumpTo都无法滚动到指定的index,请问是什么原因呢

Logs

Example code (optional)

Contact

No response

@LinXunFeng
Copy link
Member

请提供复现问题的代码~

一般出现这个问题是因为 scrollview_observer 没有捕获到 ListViewBuildContext,如条件渲染的 ListView,如果是这种问题,要么将 ListView 改为一开始就渲染,要么就是在确定渲染后去调用 observerController.reattach();

相关说明: 1.7、reattach

@LinXunFeng LinXunFeng changed the title [Bug report] [Bug report] 水平方向的Listview无法滚动到指定的index Jan 20, 2025
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

2 participants