@@ -70,6 +70,89 @@ final travelCarousel = CatalogItem(
70
70
dispatchEvent: dispatchEvent,
71
71
);
72
72
},
73
+ exampleData: {
74
+ 'root' : 'greece_inspiration_column' ,
75
+ 'widgets' : [
76
+ {
77
+ 'id' : 'greece_inspiration_column' ,
78
+ 'widget' : {
79
+ 'Column' : {
80
+ 'children' : ['inspiration_title' , 'inspiration_carousel' ],
81
+ },
82
+ },
83
+ },
84
+ {
85
+ 'id' : 'inspiration_title' ,
86
+ 'widget' : {
87
+ 'Text' : {
88
+ 'text' :
89
+ "Let's plan your dream trip to Greece! What kind of experience"
90
+ ' are you looking for?' ,
91
+ },
92
+ },
93
+ },
94
+ {
95
+ 'widget' : {
96
+ 'TravelCarousel' : {
97
+ 'items' : [
98
+ {
99
+ 'title' : 'Relaxing Beach Holiday' ,
100
+ 'imageChildId' : 'santorini_beach_image' ,
101
+ },
102
+ {
103
+ 'imageChildId' : 'akrotiri_fresco_image' ,
104
+ 'title' : 'Cultural Exploration' ,
105
+ },
106
+ {
107
+ 'imageChildId' : 'santorini_caldera_image' ,
108
+ 'title' : 'Adventure & Outdoors' ,
109
+ },
110
+ {'title' : 'Foodie Tour' , 'imageChildId' : 'greece_food_image' },
111
+ ],
112
+ },
113
+ },
114
+ 'id' : 'inspiration_carousel' ,
115
+ },
116
+ {
117
+ 'id' : 'santorini_beach_image' ,
118
+ 'widget' : {
119
+ 'Image' : {
120
+ 'fit' : 'cover' ,
121
+ 'assetName' : 'assets/travel_images/santorini_panorama.jpg' ,
122
+ },
123
+ },
124
+ },
125
+ {
126
+ 'id' : 'akrotiri_fresco_image' ,
127
+ 'widget' : {
128
+ 'Image' : {
129
+ 'fit' : 'cover' ,
130
+ 'assetName' :
131
+ 'assets/travel_images/akrotiri_spring_fresco_santorini.jpg' ,
132
+ },
133
+ },
134
+ },
135
+ {
136
+ 'id' : 'santorini_caldera_image' ,
137
+ 'widget' : {
138
+ 'Image' : {
139
+ 'assetName' : 'assets/travel_images/santorini_from_space.jpg' ,
140
+ 'fit' : 'cover' ,
141
+ },
142
+ },
143
+ },
144
+ {
145
+ 'widget' : {
146
+ 'Image' : {
147
+ 'fit' : 'cover' ,
148
+ 'assetName' :
149
+ 'assets/travel_images/saffron_gatherers_fresco_santorini.jpg' ,
150
+ },
151
+ },
152
+ 'id' : 'greece_food_image' ,
153
+ },
154
+ ],
155
+ },
73
156
);
74
157
75
158
extension type _TravelCarouselData .fromMap (Map <String , Object ?> _json) {
0 commit comments