kosukesaigusa / geoflutterfire_plus

🌍💙🔥 geoflutterfire_plus allows your flutter apps to query geographic data saved in Cloud Firestore. This package is fork from GeoFlutterFire, and tried to be constantly maintained to work with latest Flutter SDK, Dart SDK, and other dependency packages.
https://pub.dev/packages/geoflutterfire_plus
MIT License
59 stars 7 forks source link

One time query as Future #169

Closed JoergPf closed 7 months ago

JoergPf commented 7 months ago

Hi, I saw a post that you can use fetchWithin method to fetch geo locations as Future. When my app starts I would like to query initially Firestore for objects in a certain distance. But only once and not as a stream. Is there an example? Thanks

kosukesaigusa commented 7 months ago

Hello @JoergPf!

You can call GeoCollectionReference class fetchWithin method defined in the following codes!

https://github.com/kosukesaigusa/geoflutterfire_plus/blob/685a2c857423654d2b441baec7e322c1463a8652/lib/src/geo_collection_reference.dart#L171

JoergPf commented 7 months ago

Great, thanks!