@@ -6,9 +6,10 @@ class Planet {
66 final String gravity;
77 final String description;
88 final String image;
9+ final String picture;
910
1011 const Planet ({this .id, this .name, this .location, this .distance, this .gravity,
11- this .description, this .image});
12+ this .description, this .image, this .picture });
1213}
1314
1415List <Planet > planets = [
@@ -20,6 +21,7 @@ List<Planet> planets = [
2021 gravity: "3.711 m/s " ,
2122 description: "Lorem ipsum..." ,
2223 image: "assets/img/mars.png" ,
24+ picture: "https://www.nasa.gov/sites/default/files/thumbnails/image/pia21723-16.jpg"
2325 ),
2426 const Planet (
2527 id: "2" ,
@@ -29,6 +31,7 @@ List<Planet> planets = [
2931 gravity: "3.711 m/s " ,
3032 description: "Lorem ipsum..." ,
3133 image: "assets/img/neptune.png" ,
34+ picture: "https://www.nasa.gov/sites/default/files/styles/full_width_feature/public/images/110411main_Voyager2_280_yshires.jpg"
3235 ),
3336 const Planet (
3437 id: "3" ,
@@ -38,6 +41,7 @@ List<Planet> planets = [
3841 gravity: "3.711 m/s " ,
3942 description: "Lorem ipsum..." ,
4043 image: "assets/img/moon.png" ,
44+ picture: "https://farm5.staticflickr.com/4086/5052125139_43c31b7012.jpg"
4145 ),
4246 const Planet (
4347 id: "4" ,
@@ -47,6 +51,7 @@ List<Planet> planets = [
4751 gravity: "3.711 m/s " ,
4852 description: "Lorem ipsum..." ,
4953 image: "assets/img/earth.png" ,
54+ picture: "https://www.nasa.gov/sites/default/files/styles/full_width_feature/public/thumbnails/image/iss042e340851_1.jpg"
5055 ),
5156 const Planet (
5257 id: "5" ,
@@ -56,5 +61,6 @@ List<Planet> planets = [
5661 gravity: "3.711 m/s " ,
5762 description: "Lorem ipsum..." ,
5863 image: "assets/img/mercury.png" ,
64+ picture: "https://c1.staticflickr.com/9/8105/8497927473_2845ae671e_b.jpg"
5965 ),
6066];
0 commit comments