FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
98 stars 17 forks source link

Infinite Scroll doesnt work as expected. #2843

Open gabdreux opened 2 weeks ago

gabdreux commented 2 weeks ago

Has your issue been reported?

Current Behavior

I found threads talking about the same problem where they apparently were resolved.

I tried to apply all the alternatives to work but I was not successful. I tried using the parent column as primary, the listView as primary, expanded, not expanded... with and without container.... without column using just container and listView... I believe I have tried every combination.

https://github.com/FlutterFlow/flutterflow-issues/issues/315 https://github.com/FlutterFlow/flutterflow-issues/issues/2433 https://github.com/FlutterFlow/flutterflow-issues/issues/1881 https://github.com/FlutterFlow/flutterflow-issues/issues/1231 https://github.com/FlutterFlow/flutterflow-issues/issues/2315

CURRENT BEHAVIOR:

PROJECT ID: monitor-hdo4ke

Expected Behavior

Steps to Reproduce

  1. Create a new page
  2. Add a container and a listView
  3. Set a query collection with no filters
  4. Set page size query limit to a number smaller then the collection count (eg. collection have 10 docs, set the page size to 4)
  5. Test

Reproducible from Blank

Bug Report Code (Required)

ITFTi8mAvI9IsbRJ+KrQcsF4niIvI0MdXZIRmOtvewgjF774EO0TO/ekX1pBXsizaHxmeFSYkk8F+s71ks7lC/UoPQ2sbaJN1s1UYRPPY3KjVYzQO7iSenNtEf9jCEC9yLergSZQIu9iSkIQw2bzAe+yST+Cf9qOYwx5e6fDbOY=

Context

Im trying to limit the query using the page size limit for the infinite scroll.

Visual documentation

infitite01

Additional Info

No response

Environment

- FlutterFlow version: FlutterFlow v4.1.41+ released April 30, 2024 - Flutter version is 3.19.1
- Platform: Windows
- Browser name and version: 124.0.6367.63
- Operating system and version affected:

General

Relative to the time the changes were made, data was lost within

When following my steps to reproduce, data loss happens

rzambroni commented 2 weeks ago

Hi @gabdreux, i was able to replicate the problem you are describing. Will send it over to the team so they can take a look.

Thanks for the report.

gabdreux commented 2 weeks ago

@rzambroni you are welcome! Could you explain to me what would be the correct way/order to assemble the structure/hierarchy of elements so that the infinite scroll works correctly? Because as I said, it seems that each user found a particular way to make it work and the documentation does not address the topic. That when you resolve the bug I will be sure that I am doing it the right way. Much tks!

vinayakagw commented 1 week ago

Any update on a fix?

timfong888 commented 1 week ago

I have been having issues with Infinite Scroll as well on a Listview to both an external API call and a firestore collection. Not the exact same problem so curious if there's a generalized issue.