Vladyslav
 · LLC VR-GROUP

Scroll listview Bug

Actions & Logic

I'm attaching a video regarding an issue with scrolling, specifically with the slipping of elements in a ListView with dynamic content. I partly understand that the issue might be with the widget itself, but I’m not sure how to resolve the slipping problem.

The main issue is that during loading, ListView doesn't know the size of its child elements, causing the slipping. Meanwhile, the Column widget doesn't have this issue, and everything scrolls correctly. However, the Column widget cannot use the scrollToEnd action, which is crucial for data types like a message list.

Any help would be appreciated if anyone has encountered this issue before. I've added a video for better understanding.

Запис екрана 2024-10-01 о 15.59.01.mov
6.23MB

What have you tried so far?

I attempted to resolve the issue by applying a different logic. I noticed that there is no overscroll in the Column widget. Previously, I wrapped the widget in a Transform rotated by 180 degrees, then wrapped the dynamic element again by 180 degrees. This completely removed overscroll. However, after an update, a new problem emerged — the scroll started working in the opposite direction. This change seems to be due to updates in the SDK or Flutter itself, where reverse scrolling now affects the scroll direction.

As a result, my custom method no longer makes sense, and I had to return to using ListView and scrollToEnd. But this brought me back to the original scrolling issue.

Question: Why is there no overscroll in Column, but overscroll exists in ListView?

Did you check FlutterFlow's Documentation for this topic?
Yes
1
2 replies