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

Always show header #53

Closed gtilson closed 3 years ago

gtilson commented 3 years ago

Is it possible to show the header widget even when no documents are found in the query?

vedartm commented 3 years ago

It is not supported yet. But you can put your header and the PaginateFirestore widget inside a Column and Wrap the PaginateFirestore with Expanded.

Like this,

Column(
  children: [
    Header(), 
    Expanded(
      child: PaginateFirestore(... ) 
    ), 
  ], 
) 
fluttermobileappdev commented 3 years ago

What about footer ?

vedartm commented 3 years ago

Now v1.0.0 supports header and footer with Sliver. Check the example file more details.

If you want a sticky footer use SliverFillRemaining like this

vedartm commented 3 years ago

Thanks for using the package @fluttermobileappdev @gtilson. Feel free to reopen this if you face any similar issues.

fluttermobileappdev commented 3 years ago

Thank you