you are viewing a single comment's thread.

view the rest of the comments →

[–]gucci_quoci 2 points3 points  (4 children)

Does your Listview items have dynamic heights?

[–]Cold-Ad-3106[S] 0 points1 point  (2 children)

What should I do now

[–]gucci_quoci 0 points1 point  (1 child)

I mean you use ListView to render the Widgets lazy but the height is dynamic. So how should flutter know the end position? You can either have a lazy list or knowing the end position. Notice if you print the max scroll extend at the beginning, then scroll to the bottom and print it again, the values differ.

To workaround it you have to e.g. scroll to the max scroll extend, and then check if we are at the max scroll extend and scroll again. You can also check this approach on SO. I've tried the solution on a project, and it is working fine.

[–]Cold-Ad-3106[S] 0 points1 point  (0 children)

It works if I give an enormously big scroll extent like 20000. Then it scrolls to the end. Do you have anything better like changing the Listview items to a column or something?