Category : Paginating

Pagination in Firestore Setup Use the same setup used for cloud_firestore package (or follow this). Usage In your pubspec.yaml dependencies: paginate_firestore: ^0.1.0 Import it import ‘package:paginate_firestore/paginate_firestore.dart’; Implement it PaginateFirestore( itemBuilder: (context, documentSnapshot) => ListTile( leading: CircleAvatar(child: Icon(Icons.person)), title: Text(documentSnapshot.data[‘name’]), subtitle: Text(documentSnapshot.documentID), ), // orderBy is compulsary to enable pagination query: Firestore.instance.collection(‘users’).orderBy(‘name’), ) Contributions Feel free to contribute to ..

Read more

paging A Flutter package for paginating a list view Installation Add this to your package’s pubspec.yaml file dependencies: … paging: ^latest.version.here Usage First import paging.dart import ‘package:paging/paging.dart’; Simple to use. You can pass a type <T> as a parameter to the widget, by default dynamic is assumed. There are two required parameters: pageBuilder: requires a ..

Read more