Skip to content
This repository was archived by the owner on Sep 14, 2024. It is now read-only.

Commit 21e80dd

Browse files
committed
Fixed Dart Format
1 parent c2cc936 commit 21e80dd

1 file changed

Lines changed: 33 additions & 35 deletions

File tree

lib/src/screens/recipe_screen.dart

Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -153,43 +153,41 @@ class _RecipeScreenBodyState extends State<RecipeScreenBody> {
153153

154154
final bottom = SliverList(
155155
delegate: SliverChildListDelegate.fixed([
156-
if (MediaQuery.of(context).size.width > 600)
157-
...[
158-
Row(
159-
crossAxisAlignment: CrossAxisAlignment.start,
160-
children: [
161-
if (recipe.tool.isNotEmpty)
162-
Expanded(
163-
child: ToolList(recipe: recipe),
164-
),
165-
if (recipe.nutritionList.isNotEmpty)
166-
Expanded(
167-
child: NutritionList(recipe.nutritionList),
168-
),
169-
],
170-
),
171-
Row(
172-
crossAxisAlignment: CrossAxisAlignment.start,
173-
children: [
174-
if (recipe.recipeIngredient.isNotEmpty)
175-
Expanded(
176-
flex: 5,
177-
child: IngredientList(recipe),
178-
),
156+
if (MediaQuery.of(context).size.width > 600) ...[
157+
Row(
158+
crossAxisAlignment: CrossAxisAlignment.start,
159+
children: [
160+
if (recipe.tool.isNotEmpty)
179161
Expanded(
180-
flex: 10,
181-
child: InstructionList(recipe),
162+
child: ToolList(recipe: recipe),
182163
),
183-
],
184-
),
185-
]
186-
else
187-
...[
188-
if (recipe.tool.isNotEmpty) ToolList(recipe: recipe),
189-
if (recipe.nutritionList.isNotEmpty) NutritionList(recipe.nutritionList),
190-
if (recipe.recipeIngredient.isNotEmpty) IngredientList(recipe),
191-
InstructionList(recipe),
192-
]
164+
if (recipe.nutritionList.isNotEmpty)
165+
Expanded(
166+
child: NutritionList(recipe.nutritionList),
167+
),
168+
],
169+
),
170+
Row(
171+
crossAxisAlignment: CrossAxisAlignment.start,
172+
children: [
173+
if (recipe.recipeIngredient.isNotEmpty)
174+
Expanded(
175+
flex: 5,
176+
child: IngredientList(recipe),
177+
),
178+
Expanded(
179+
flex: 10,
180+
child: InstructionList(recipe),
181+
),
182+
],
183+
),
184+
] else ...[
185+
if (recipe.tool.isNotEmpty) ToolList(recipe: recipe),
186+
if (recipe.nutritionList.isNotEmpty)
187+
NutritionList(recipe.nutritionList),
188+
if (recipe.recipeIngredient.isNotEmpty) IngredientList(recipe),
189+
InstructionList(recipe),
190+
]
193191
]),
194192
);
195193

0 commit comments

Comments
 (0)