Best Practice loading / watch long drift list in ListView #3075
Unanswered
FantaMagier
asked this question in
Q&A
Replies: 1 comment 1 reply
-
To make sure it's not a drift issue after all, you could log the length of stream updates you're getting - if there's an event with a broken list of product entries, that could impact the UI as well. Unfortunately I'm not that familiar with Flutter so I'm not sure about what to do about this, but if it turns out to not be a drift problem you could try again with a static list view (e.g. not updated by a stream) and see if the same problem happens. If it does, it may be a Flutter issue. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys,
I have a problem on Android that when I get a stream from Drift and I want to display it in a ListView builder. I think it's more a Flutter general problem, everything should work with Drift :D
My problem is that if you scroll down in a ListView on Android for a long time and then scroll up again only briefly, the ListView is directly at the top again although you have scrolled very far down. That's why I wanted to ask how you do it with long ListViews and how you display them correctly?
I also don't want to use shrinkWrap then I load everything directly again.
Example the following stream:
And then I simply use the AsyncValue with the .when function and display the ListView.builder as normal with the data from the snapshot.
Beta Was this translation helpful? Give feedback.
All reactions