Skip to content

Pagination support for reels list to avoid range errors #2

Description

@adarshneeds

When trying to implement pagination by adding reels into a list, a range error occurs if we attempt to append new reels beyond the expected range. This makes it difficult to properly handle infinite scrolling or load-more functionality.

Steps to Reproduce:

  1. Initialize a list of reels.
  2. Try to load more reels and append them to the existing list.
  3. Observe the RangeError when the index exceeds the expected range.

Expected Behavior:
The package should provide a clean way to implement pagination or incremental loading so that new reels can be added to the list without hitting range issues.

Actual Behavior:
Appending reels to the list leads to a RangeError when the index goes out of bounds.

Possible Solutions:

  • Provide a built-in pagination mechanism.
  • Allow the list to dynamically resize or handle appended data gracefully.
  • Document best practices for implementing pagination with this package.

Environment:

  • reels package version: 1.0.0
  • Flutter version: 3.27.2
  • Platform: Android

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions