vedartm / paginate_firestore

A flutter package to simplify pagination with firestore data 🗃
https://pub.dev/packages/paginate_firestore
MIT License
113 stars 138 forks source link

How to change the default no documents found message #63

Closed devDonald closed 3 years ago

devDonald commented 3 years ago

Please I need to change the default no document found message when there are no documents found. I have used:

`if(snapshot.data().isEmpty || snapshot.data().length < 1 || !snapshot.data().isNotEmpty){

return Container( margin: EdgeInsets.only(top: 170), child: NoDataAvailable( message: 'No Video posts Yet', ), ); }`

but i still get the no document found message

vedartm commented 3 years ago

Hey @devDonald! You can use emptyDisplay attribute which accepts a Widget that can be anything of your choice (Different text or even image).

vedartm commented 3 years ago

Thanks for using the package. Hope this helps with the issue. Feel free to reopen this if you face any similar issues.

devDonald commented 3 years ago

Thank you @excogitatr it worked