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] 无法滚动到指定下标位置 #74

Closed
feimenggo opened this issue Mar 13, 2024 · 3 comments
Closed

[Bug report] 无法滚动到指定下标位置 #74

feimenggo opened this issue Mar 13, 2024 · 3 comments

Comments

@feimenggo
Copy link

feimenggo commented Mar 13, 2024

Version

1.19.0

Platforms

macOS

Device Model

MacBook Pro M1

flutter info

 Flutter (Channel stable, 3.19.3, on macOS 14.2.1 23C71 darwin-arm64, locale zh-Hans-CN)

How to reproduce?

当使用ListView的itemExtentBuilder时,无法滚动到指定下标位置。
而不使用itemExtentBuilder时,可以正常滚动到指定下标位置。

Logs

No response

Example code (optional)

No response

Contact

No response

@LinXunFeng
Copy link
Member

周末我再发个版本解决,如果着急可以先按如下处理

ListViewObserver(
  child: _buildListView(),
  ...
+  customTargetRenderSliverType: (renderObj) {
+    return renderObj is RenderSliverVariedExtentList;
+  },
  ...
);

@feimenggo
Copy link
Author

好的

@LinXunFeng
Copy link
Member

请升级使用 1.19.1 版本

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