Skip to content

Commit 4b49f0f

Browse files
committed
Update testing_codelab rebuild script
1 parent d218104 commit 4b49f0f

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

testing_codelab/codelab_rebuild.yaml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,11 @@ steps:
184184
return Scaffold(
185185
appBar: AppBar(title: const Text('Favorites')),
186186
body: Consumer<Favorites>(
187-
builder:
188-
(context, value, child) => ListView.builder(
189-
itemCount: value.items.length,
190-
padding: const EdgeInsets.symmetric(vertical: 16),
191-
itemBuilder:
192-
(context, index) => FavoriteItemTile(value.items[index]),
193-
),
187+
builder: (context, value, child) => ListView.builder(
188+
itemCount: value.items.length,
189+
padding: const EdgeInsets.symmetric(vertical: 16),
190+
itemBuilder: (context, index) => FavoriteItemTile(value.items[index]),
191+
),
194192
),
195193
);
196194
}
@@ -288,10 +286,9 @@ steps:
288286
title: Text('Item $itemNo', key: Key('text_$itemNo')),
289287
trailing: IconButton(
290288
key: Key('icon_$itemNo'),
291-
icon:
292-
favoritesList.items.contains(itemNo)
293-
? const Icon(Icons.favorite)
294-
: const Icon(Icons.favorite_border),
289+
icon: favoritesList.items.contains(itemNo)
290+
? const Icon(Icons.favorite)
291+
: const Icon(Icons.favorite_border),
295292
onPressed: () {
296293
!favoritesList.items.contains(itemNo)
297294
? favoritesList.add(itemNo)

0 commit comments

Comments
 (0)