# Chapter 6 Bug ( grocery\_list\_screen)

**URL:** <https://forums.kodeco.com/t/chapter-6-bug-grocery-list-screen/154535>\
**Category:** Flutter Apprentice\
**Created:** [October 23, 2021, 7:41pm UTC](https://forums.kodeco.com/t/chapter-6-bug-grocery-list-screen/154535 "2021-10-23T19:41:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lediomalasi](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/lediomalasi/32/81494_2.png) [@lediomalasi](https://forums.kodeco.com/u/lediomalasi)\
**Post date:** [October 23, 2021, 7:41pm UTC](https://forums.kodeco.com/t/chapter-6-bug-grocery-list-screen/154535/1 "2021-10-23T19:41:19Z")

</div>

mport ‘package:flutter/material.dart’;  
import ‘…/components/grocery\_tile.dart’;  
import ‘…/models/models.dart’;  
import ‘grocery\_item\_screen.dart’;  
import ‘…/models/grocery\_item.dart’;

class GroceryListScreen extends StatelessWidget {  
final GroceryManager manager;

const GroceryListScreen({Key? key, required this.manager}) : super(key: key);

@override  
Widget build(BuildContext context) {  
final groceryItems = manager.groceryItems;  
return Padding(  
padding: const EdgeInsets.all(16.0),  
child: ListView.separated(  
itemCount: groceryItems.length,  
itemBuilder: (context, index) {  
final item = groceryItems[index];  
//TODO 28: Wrap in a Dismissable  
//TODO 27: Wrap in an InkWell  
return GroceryTile(  
key: Key(item.id), **//Problem : The getter id isnt defined for the type GroceryManager**  
item: item, **// Problem : The argument type ‘GroceryManager’ cant be assign to the parameter type ‘GroceryItem’**  
onComplete: (change){  
if (change != null) {  
manager.completeItem(index, change!);  
}  
},  
);  
},  
separatorBuilder: (context, index){  
return const SizedBox(height: 16.0);  
},  
),  
);  
}  
}

I have highlighted the 2 bugs and given the error message that it displays. Any help appreciated thanks!

---

<div class="post-metadata">

**Author:** ![funkyboy](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/funkyboy/32/109099_2.png) [@funkyboy](https://forums.kodeco.com/u/funkyboy)\
**Post date:** [October 23, 2021, 10:47pm UTC](https://forums.kodeco.com/t/chapter-6-bug-grocery-list-screen/154535/2 "2021-10-23T22:47:37Z")

</div>

@lediomalasi  
In which section of chapter 6 is this happening?  
Can you use the final project to pinpoint if you mistyped something?

---

<div class="post-metadata">

**Author:** ![lediomalasi](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/lediomalasi/32/81494_2.png) [@lediomalasi](https://forums.kodeco.com/u/lediomalasi)\
**Post date:** [October 24, 2021, 5:27am UTC](https://forums.kodeco.com/t/chapter-6-bug-grocery-list-screen/154535/3 "2021-10-24T05:27:59Z")

</div>

Omg you are right i had mistyped something! Thank you for pointing it out.
