mobileappdevhm19 / lust-LibraryUniversalSwissTool

apps4students-team-5 created by GitHub Classroom
2 stars 2 forks source link

Feature/location api #98

Closed mateomotriz closed 5 years ago

mateomotriz commented 5 years ago

the database is returning a null value :(

Future getLib() { Firestore.instance.runTransaction((Transaction tx) async { DocumentSnapshot snapshot = await tx.get(documentHM); if (snapshot.exists) { snapLat = await snapshot.data[bibLat].toString(); snapLon = await snapshot.data[bibLon].toString(); } return snapLat; }); }

ghost commented 5 years ago

documentHM.get() .then((DocumentSnapshot document) { GeoPoint lib = document['point'] });

worldpotato commented 5 years ago

merged into #100