skip to Main Content

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.

3

Answers


  1. You are using the default constructor that has different named parameters, you need to use ListView.builder() to use those named arguments.

    Login or Signup to reply.
  2. 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();
              }
          ),
    
    Login or Signup to reply.
  3. A ListView() don’t have thies properties but a ListView.builder() have they.

    list view have children and not itembuilder.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search