cleaner ci
This commit is contained in:
		| @@ -10,14 +10,39 @@ Future<List<Landmark>> fetchLandmarks() async { | ||||
|     // If the server did return a 200 OK response, | ||||
|     // then parse the JSON. | ||||
|     List<Landmark> landmarks = [ | ||||
|       Landmark(name: "Landmark 1", location: [48.85, 2.35], type: LandmarkType(name: "Type 1")), | ||||
|       Landmark(name: "Landmark 2", location: [48.86, 2.36], type: LandmarkType(name: "Type 2")), | ||||
|       Landmark(name: "Landmark 3", location: [48.75, 2.3], type: LandmarkType(name: "Type 3")), | ||||
|       Landmark(name: "Landmark 4", location: [48.9, 2.4], type: LandmarkType(name: "Type 4")), | ||||
|       Landmark(name: "Landmark 5", location: [48.91, 2.45], type: LandmarkType(name: "Type 5")), | ||||
|       // 48°51′29.6″N 2°17′40.2″E | ||||
|       Landmark( | ||||
|         name: "Eiffel Tower", | ||||
|         location: [48.51296, 2.17402], | ||||
|         type: LandmarkType(name: "Tower"), | ||||
|         imageURL: "https://upload.wikimedia.org/wikipedia/commons/thumb/a/a8/Tour_Eiffel_Wikimedia_Commons.jpg/1037px-Tour_Eiffel_Wikimedia_Commons.jpg" | ||||
|         ), | ||||
|       Landmark( | ||||
|         name: "Notre Dame Cathedral", | ||||
|         location: [48.8530, 2.3498], | ||||
|         type: LandmarkType(name: "Monument"), | ||||
|         imageURL: "https://upload.wikimedia.org/wikipedia/commons/thumb/f/f7/Notre-Dame_de_Paris%2C_4_October_2017.jpg/440px-Notre-Dame_de_Paris%2C_4_October_2017.jpg" | ||||
|         ), | ||||
|       Landmark( | ||||
|         name: "Louvre palace", | ||||
|         location: [48.8606, 2.3376], | ||||
|         type: LandmarkType(name: "Museum"), | ||||
|         imageURL: "https://upload.wikimedia.org/wikipedia/commons/thumb/6/66/Louvre_Museum_Wikimedia_Commons.jpg/540px-Louvre_Museum_Wikimedia_Commons.jpg" | ||||
|         ), | ||||
|       Landmark( | ||||
|         name: "Pont-des-arts", | ||||
|         location: [48.5130, 2.2015], | ||||
|         type: LandmarkType(name: "Bridge"), | ||||
|         imageURL: "https://upload.wikimedia.org/wikipedia/commons/thumb/d/d1/Pont_des_Arts%2C_6e_Arrondissement%2C_Paris_%28HDR%29_20140320_1.jpg/560px-Pont_des_Arts%2C_6e_Arrondissement%2C_Paris_%28HDR%29_20140320_1.jpg"), | ||||
|       Landmark( | ||||
|         name: "Panthéon", | ||||
|         location: [48.5046, 2.2046], | ||||
|         type: LandmarkType(name: "Monument"), | ||||
|         imageURL: "https://upload.wikimedia.org/wikipedia/commons/thumb/8/80/Pantheon_of_Paris_007.JPG/1280px-Pantheon_of_Paris_007.JPG" | ||||
|         ), | ||||
|     ]; | ||||
|     // sleep 10 seconds | ||||
|     await Future.delayed(Duration(seconds: 10)); | ||||
|     await Future.delayed(Duration(seconds: 5)); | ||||
|     return landmarks; | ||||
|   // } else { | ||||
|   //   // If the server did not return a 200 OK response, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user