Issue
[children and padding isnt defined in listView flutter]
return ListView( padding: const EdgeInsets.all(8),
children: [ Container( height: 50, color: Colors.amber[600], child: const Center(child: Text('Entry A')), ), Container( height: 50, color: Colors.amber[500], child: const Center(child: Text('Entry B')), ), Container( height: 50, color: Colors.amber[100], child: const Center(child: Text('Entry C')), ), ], );
Solution
the problem was my class name was ListView when i changed name it work properly.
we must choose names that diffrent from dart flutter classes
Answered By - h.sadig
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.