ui improvements for trips and landmarks
This commit is contained in:
@@ -57,6 +57,13 @@ fetchTrip(
|
||||
// only fill in the trip "meta" data for now
|
||||
trip.loadFromJson(json);
|
||||
|
||||
|
||||
// now fill the trip with landmarks
|
||||
// if (trip.landmarks.isNotEmpty) {
|
||||
// trip.landmarks.clear();
|
||||
// }
|
||||
// we are going to recreate all the landmarks from the information given by the api
|
||||
trip.landmarks.remove(trip.landmarks.first);
|
||||
String? nextUUID = json["first_landmark_uuid"];
|
||||
while (nextUUID != null) {
|
||||
var (landmark, newUUID) = await fetchLandmark(nextUUID);
|
||||
|
Reference in New Issue
Block a user