Applied fixes and upgrades from the community ♥
This update made by https://github.com/LucaDillenburg
- Problem: The last version of the package did not work well with the new
Repository<T>
andQuery<T>
types, because the code was not type annotated. Also, it couldn't work with thewithConverter
method from thecloud_firestore
package. - Solution: The code was refactored to add type annotation and another class was created to both:
- Maintain compatibility with the last version
- Enable users to use the package with the
withConverter
method with little to no change. As explained in the README, theGeoFireCollectionWithConverterRef<T>
class can be used instead of the originalGeoFireCollectionRef
with the only change needed towithin
method that now requires an extra parameter to actually get theGeoPoint
from theT
class.
- Linting was added and the warnings were resolved
- Static types were prioritized instead of dynamic types
- Create
withinWithDistance
method that returns the DocumentSnapshot with the calculated distance (to avoid recalculations)
Applied fixes and upgrades from the community ♥
- upgraded dependencies, fixed errors
- upgraded dependencies, latest before Flutter 2.0 and null safety
- upgraded dependencies
- fixed breaking changes
- would not be able to access data using
doc.data['distance']
anymore
- upgraded dependencies
- fix for iOS build errors
- fixes for breaking changes from 2.0.3 for stream builders
- added a bug-fix for supporting stream builders
- added support for filtering documents strictly/easily with respect to radius
- bumped up the versions of kotlin-plugin and gradle.
- Support for GeoPoints nested inside the firestore document
- Breaking change. Migrate from the deprecated original Android Support Library to AndroidX. This shouldn't result in any functional changes, but it requires any Android apps using this plugin to also migrate if they're using the original support library.
- reverted to flutter stable channel from master.
- Refactored code to adhere to best practices(again)
- Refactored code to adhere to best practices
- Initial Release