Markdown. Privacy Policies. Injection dep updated

This commit is contained in:
vjrj 2018-07-12 09:57:31 +02:00
parent 8301e6a40e
commit f0ab472b3a
21 changed files with 487 additions and 25 deletions

View file

@ -47,7 +47,7 @@ Future<YourLocation> getUserLocation(
Future<String> getReverseLocation(YourLocation loc,
[bool external = false]) async {
final coordinates = new Coordinates(loc.lat, loc.lon);
var geoCoder = external ? Geocoder.google(Injector.getInjector().get(String, "gmapKey")) : Geocoder.local;
var geoCoder = external ? Geocoder.google(Injector.getInjector().get<String>(key: "gmapKey")) : Geocoder.local;
var addresses = await geoCoder.findAddressesFromCoordinates(coordinates);
var first = addresses.first;
print("${first.featureName} : ${first.addressLine}");