Skip to content
pubscout

firebase_pagination

4.3.0, released 2 weeks ago by outdatedguy.rocks

Paginate Cloud Firestore and Firebase Realtime Database with live updates.

WASM-ready
$ flutter pub add firebase_pagination
Source repository

What it does

Provides ready-to-use widgets like FirestorePagination and RealtimeDBPagination to handle scrolling-based data pagination and live updates from Firebase backends.

AI-written summary of version 4.3.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to display paginated lists from Cloud Firestore or Firebase Realtime Database.
  • You want automatic handling of infinite scrolling and data updates.

Skip it when

  • You are not using Firebase as your backend.
  • You prefer implementing custom pagination logic using scroll controllers.

Strengths

  • Simplifies pagination for both Cloud Firestore and Firebase Realtime Database
  • Supports live updates and real-time changes
  • Low resource usage with a maximum of two stream listeners

Weaknesses

  • Tightly coupled to Firebase services

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2

Requires configured Firebase in your Flutter application.

FirestorePagination(
  query: FirebaseFirestore.instance.collection('scores').orderBy('score'),
  itemBuilder: (context, docs, index) {
    final data = docs[index].data() as Map<String, dynamic>;
  },
)

Alternatives

Packages that do the same job and could replace firebase_pagination.

Works with

Packages commonly used together with firebase_pagination: ones it builds on, ones built on it, and its own family.