There is my error , I want to solve this problem enter image description here The named parameter 'itemCount' isn't defined. The named parameter 'itemBuilder' isn't defined.
CodePudding user response:
You are using the default constructor that has different named parameters, you need to use ListView.builder()
to use those named arguments.
CodePudding user response:
That's because you're using ListView
with children constructor. Try ListView.builder()
instead of `ListView().
CodePudding user response:
Hello Syed i might thing that your try to use Listview() on Place of Listview.builder()....
ListView(
children: [
Container(),
],
),
ListView.builder(
itemCount: 2,
itemBuilder: (context, index){
return Container();
}
),
CodePudding user response:
A ListView()
don't have thies properties but a ListView.builder()
have they.
list view have children
and not itembuilder
.