Closed krsolutions closed 3 years ago
it is working for me on version 2.2.1
you just need to add the where condition in the query that you pass to the collectionRef parameter
final collection = FirebaseFirestore.instance
.collection('locations')
.where('city', isEqualTo: 'San Francisco');
Stream<List<DocumentSnapshot>> stream = Geoflutterfire()
.collection(collectionRef: collection)
.within(
center: GeoFirePoint(40.7651, -73.9692633),
radius: 40,
field: 'location');
We need to register a composite query to make it work, for example, if there are filters like brands, size, gender...etc
we need to create an index for all combinations Nike, xl, male & puma, l, female ..etc
@krsolutions Have you solved this issue?
Solved the issue too by adding a composite query. https://github.com/DarshanGowda0/GeoFlutterFire/issues/99#issuecomment-778756666
Where condition not working, without that plugin is not usefull , please fix asap.