Implement pagination in the RSS feed screen.

Aperta
#194 10 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@dawarepramod4 ci sta già lavorando.

Dal 15/9/2023.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

enhancement good-to-go

Problem description
Sometimes, the user can request ‘n’ no. of torrents to be displayed in the feed. In this scenario, loading all the list items at once causes the UI to lag.

Solution
We can lazily load the list items in chunks instead of all at once. This is commonly known as pagination. Several optimizations can be made as follows:

  1. Loading items only when the user clicks to ‘load more’.
  2. Retrying/refreshing a network request
  3. Saving the feed items in the local cache first and then displaying them.
  4. Filtering and sorting list items

Implementation
We can use a paging library to fetch chunks of data, by their page keys. https://pub.dev/packages/infinite_scroll_pagination.

Are you working on this? (Yes/No)
Yes.

This is what the UI would possibly look like ------------------

Torrents RSS feed UI

Lingua principale
Dart
Stelle
102
Fork
119
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CCExtractor/Flood_Mobile

Tutte le issue di CCExtractor/Flood_Mobile

Issue simili

Altre issue su Dart

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.