diff --git a/lib/services/geolocation_service.dart b/lib/services/geolocation_service.dart index a323210d..f2f4edce 100644 --- a/lib/services/geolocation_service.dart +++ b/lib/services/geolocation_service.dart @@ -1,5 +1,6 @@ import "package:cloud_firestore/cloud_firestore.dart"; import "package:geolocator/geolocator.dart"; +import "package:hooks_riverpod/hooks_riverpod.dart"; class GeoLocationService { final GeolocatorPlatform _geoLocator; @@ -60,3 +61,9 @@ class GeoLocationService { return GeoPoint(position.latitude, position.longitude); } } + +final geoLocationServiceProvider = Provider( + (ref) => GeoLocationService( + geoLocator: GeolocatorPlatform.instance, + ), +);