flutter_geofire
2.0.7, released 10 months ago by mrdishant.com
Flutter plugin for realtime location queries using GeoFire and Firebase.
What it does
Provides an API to store, query and listen to geographic keys in Firebase Realtime Database. It streams updates when keys enter, exit, or move within a radius around a location.
AI-written summary of version 2.0.7, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need realtime nearby‑place queries backed by Firebase Realtime Database
- Your app runs on Android or iOS and can add native pod dependencies
Skip it when
- You target web or desktop platforms
- You use Cloud Firestore instead of Realtime Database
- You need a fully featured mapping UI
Strengths
- Realtime updates via streams
- Simple key‑based API
- Supports Android and iOS with null safety
Weaknesses
- Works only with Firebase Realtime Database
- No web/desktop support
- Requires manual iOS pod configuration
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 0
Add pod 'GeoFire' in iOS Podfile as shown in README; ensure Firebase Realtime Database is configured and rules include .indexOn for 'g' field; Android setup is automatic via plugin.
String path='Sites';
Geofire.initialize(path);
await Geofire.setLocation('myKey',30.730743,76.774948);
Geofire.queryAtLocation(30.730743,76.774948,5).listen((map){print(map);});Alternatives
Packages that do the same job and could replace flutter_geofire.
- geolocator
Provides location fetching without Firebase dependency and works on all platforms
97Compare - latlong2
Utility library for geographic calculations if you implement your own backend
85Compare