filter data and keep infinite list functionality in a listview?

I think its pretty clear how to filter data by generating dynamic children in a listview. However, we lose some of the functionality provided by querying the firestore collection directly. Does anyone know the best practice to filter data by multiple criteria and still have the potential to keep other listview features such as infinite scroll?

2