FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
118 stars 18 forks source link

[Listview] Listview misses items on first load #3652

Open Jensoulus opened 1 month ago

Jensoulus commented 1 month ago

Can we access your project?

Current Behavior

This is the recovery of the following ticket because the new update did not fix the issue: https://github.com/FlutterFlow/flutterflow-issues/issues/3149

I have a firestore collection with about 3000 documents. The documents are getting queried by a list view with infinite scrolle and sorting. When the query is loaded there are items missing and/or they are not correctly sorted. If I scroll to the end of the list I am just seeing e.g. 1200 documents (I am displaying the list index). If I go to another page in the app and open the page with the query again, it shows more documents (It loads the on the second try)

Expected Behavior

I am expecting to see all the documents at the correct place in the list.

Steps to Reproduce

  1. Create a firestore collection and documents with a number field to sort them
  2. query this collection with a list view with infinite scroll
  3. compare the items shown in the list view with what should actually show

Reproducible from Blank

Bug Report Code (Required)

IT4glvH6wItIsbQB15DubO9WmjoRNkQ1Roc0sNtuTQIdCYDuBIYiaeD7PxNVYMOmTQhHKEWLrDgD/+iOivOWEfcoHzeqc6py1qhQExbJeEa/aoSIELigS2hDL/lUIEid0ra3sRMmHMlYLngs3TquPOjJSnXtJOL6Zwh9f6PHaOI=

Visual documentation

Please let me know if you need something. I could show the list on different devices showing different results but I guess it is unnecessary

Environment

- FlutterFlow version: 4.1.81
- Platform:
- Browser name and version:
- Operating system and version affected:

Additional Information

No response

paulperez-dev commented 1 month ago

Hi @Jensoulus! Thanks for the bug report code and linking previous report. I will be looking into this.

paulperez-dev commented 1 month ago

Hi @Jensoulus! JensoulusI've taken a look at your project, but with a lot going on, it's challenging to pinpoint the issue. Given the nature of the problem you're highlighting, we need a blank project with the issue steps set up in it. Without these details, it might be a bit challenging for us to investigate the issue.

Jensoulus commented 1 month ago

Hi @paulperez-dev, thanks for taking a look into the project! Is it also possible to create a new page with just one list and test there first or do you really need a blank project? Since this app is in production I am quite sensitive in connecting other sources to firebase.

paulperez-dev commented 1 month ago

Hi @Jensoulus! We can go with a new page on the same project.

Jensoulus commented 1 month ago

Hi @paulperez-dev, i have created the page in the project which only contains one list view. I have tested the scrolling and querying behavior and missing elements are still appearing. Possibly not as often as before. Does it help for your analysis?

The debug code of the list view is the following: IT4glvH6wItIsbQB15DubO9WmjoRNkQ1Roc0sNtuTQIdCYDuBIYiaeDOSFhCOO2+YwllKEWJnTgxpPT5jYSeOvUVEASaGohe1aVxEw7KbF2/aoSIELigS2hDL/lUIEid0ra3sRMmHMlYLngs3TquPOjJSnXtJOL6Zwh9f6PHaOI=

Thanks for taking care!

github-actions[bot] commented 3 weeks ago

This issue is stale because it has been open for 7 days with no activity. If there are no further updates, a team member will close the issue.

Jensoulus commented 2 weeks ago

This issue should not be closed since it is still under testing if I am not mistaken, @paulperez-dev ?

Jensoulus commented 1 week ago

Is it possible to get a current status, @paulperez-dev ?

paulperez-dev commented 1 week ago

Hi @Jensoulus! Sorry for the late response, let me dig into your last response.