@@ -157,26 +157,31 @@ class _DetailMealsScreenState extends State<DetailMealsScreen> {
157157 ingredients.add (ingredientItem);
158158 }
159159 return Padding (
160- padding: EdgeInsets .only (left: 8.0 , top: 8.0 ),
160+ padding: EdgeInsets .only (left: 8.0 , top: 8.0 , right : 8.0 ),
161161 child: ListView .builder (
162162 padding: EdgeInsets .all (0.0 ),
163163 shrinkWrap: true ,
164164 physics: NeverScrollableScrollPhysics (),
165165 itemCount: ingredients.length,
166166 itemBuilder: (context, index) {
167167 return Row (
168- crossAxisAlignment: CrossAxisAlignment .center ,
168+ crossAxisAlignment: CrossAxisAlignment .start ,
169169 children: < Widget > [
170- Container (
171- decoration: BoxDecoration (
172- shape: BoxShape .circle,
173- color: Colors .black54,
170+ Padding (
171+ padding: const EdgeInsets .only (top: 5.0 ),
172+ child: Container (
173+ decoration: BoxDecoration (
174+ shape: BoxShape .circle,
175+ color: Colors .black54,
176+ ),
177+ width: 6.0 ,
178+ height: 6.0 ,
174179 ),
175- width: 6.0 ,
176- height: 6.0 ,
177180 ),
178181 Padding (padding: EdgeInsets .only (right: 16.0 )),
179- Text (ingredients[index]),
182+ Expanded (
183+ child: Text (ingredients[index]),
184+ ),
180185 ],
181186 );
182187 },
@@ -280,17 +285,23 @@ class _DetailMealsScreenState extends State<DetailMealsScreen> {
280285
281286 Widget _buildTagMeal (String strTags) {
282287 return Row (
288+ crossAxisAlignment: CrossAxisAlignment .start,
283289 children: < Widget > [
284290 Icon (
285291 Icons .label,
286292 color: Colors .black26,
287293 size: 24.0 ,
288294 ),
289295 Padding (padding: EdgeInsets .only (left: 4.0 )),
290- Text (
291- strTags.substring (0 , strTags.length - 1 ),
292- style: TextStyle (color: Colors .grey),
293- maxLines: 1 ,
296+ Expanded (
297+ child: Padding (
298+ padding: const EdgeInsets .only (top: 3.5 ),
299+ child: Text (
300+ strTags != null ? strTags.substring (0 , strTags.length - 1 ) : "N/A" ,
301+ style: TextStyle (color: Colors .grey),
302+ maxLines: 2 ,
303+ ),
304+ ),
294305 ),
295306 ],
296307 );
0 commit comments