Thanks for the latest update! Support of stream is big help for me :)
By the way, I found a minor documentation bug on pub.dev.
I'd be happy to check it out!
Github(latest)
PaginateFirestore(
itemBuilderType: PaginateBuilderType.listView, // listview and gridview
itemBuilder: (index, 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'),
isLive: true // to fetch real-time data
)
pub.dev
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'),
isLive: true // to fetch real-time data
)
Thanks for the latest update! Support of stream is big help for me :) By the way, I found a minor documentation bug on pub.dev. I'd be happy to check it out!
Github(latest)
pub.dev