Skip to content

Commit af65fd8

Browse files
committed
Update travel_carousel.dart
1 parent d8efa54 commit af65fd8

File tree

1 file changed

+88
-2
lines changed

1 file changed

+88
-2
lines changed

examples/travel_app/lib/src/catalog/travel_carousel.dart

Lines changed: 88 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,93 @@ JsonMap _hotelExample() {
252252
guests: 2,
253253
),
254254
);
255-
return {};
255+
return {
256+
'root': 'greece_inspiration_column',
257+
'widgets': [
258+
{
259+
'id': 'greece_inspiration_column',
260+
'widget': {
261+
'Column': {
262+
'children': ['inspiration_title', 'inspiration_carousel'],
263+
},
264+
},
265+
},
266+
{
267+
'id': 'inspiration_title',
268+
'widget': {
269+
'Text': {
270+
'text':
271+
"Let's plan your dream trip to Greece! "
272+
'What kind of experience'
273+
' are you looking for?',
274+
},
275+
},
276+
},
277+
{
278+
'widget': {
279+
'TravelCarousel': {
280+
'items': [
281+
{
282+
'title': 'Relaxing Beach Holiday',
283+
'imageChildId': 'santorini_beach_image',
284+
'listingSelectionId': '12345',
285+
},
286+
{
287+
'imageChildId': 'akrotiri_fresco_image',
288+
'title': 'Cultural Exploration',
289+
'listingSelectionId': '12346',
290+
},
291+
{
292+
'imageChildId': 'santorini_caldera_image',
293+
'title': 'Adventure & Outdoors',
294+
'listingSelectionId': '12347',
295+
},
296+
{'title': 'Foodie Tour', 'imageChildId': 'greece_food_image'},
297+
],
298+
},
299+
},
300+
'id': 'hotel_carousel',
301+
},
302+
{
303+
'id': 'santorini_beach_image',
304+
'widget': {
305+
'Image': {
306+
'fit': 'cover',
307+
'assetName': 'assets/travel_images/santorini_panorama.jpg',
308+
},
309+
},
310+
},
311+
{
312+
'id': 'akrotiri_fresco_image',
313+
'widget': {
314+
'Image': {
315+
'fit': 'cover',
316+
'assetName':
317+
'assets/travel_images/akrotiri_spring_fresco_santorini.jpg',
318+
},
319+
},
320+
},
321+
{
322+
'id': 'santorini_caldera_image',
323+
'widget': {
324+
'Image': {
325+
'assetName': 'assets/travel_images/santorini_from_space.jpg',
326+
'fit': 'cover',
327+
},
328+
},
329+
},
330+
{
331+
'widget': {
332+
'Image': {
333+
'fit': 'cover',
334+
'assetName':
335+
'assets/travel_images/saffron_gatherers_fresco_santorini.jpg',
336+
},
337+
},
338+
'id': 'greece_food_image',
339+
},
340+
],
341+
};
256342
}
257343

258344
JsonMap _inspirationExample() => {
@@ -300,7 +386,7 @@ JsonMap _inspirationExample() => {
300386
],
301387
},
302388
},
303-
'id': 'hotel_carousel',
389+
'id': 'inspiration_carousel',
304390
},
305391
{
306392
'id': 'santorini_beach_image',

0 commit comments

Comments
 (0)