Hi,
The question might be childish but it's really bothering me. I have a listview.builder widget and it should return some cards based on the elements of a non empty list. The list is called names. I know I could use a map function but I want to use a for loop to return the cards. The code I have used so far :-
LimitedBox(
maxHeight: 100,
child: List view.builder(
itemBuilder: (BuildContext context, int v){
for (var i = 0; i > names.length; i++){
return Card(child: Text(names[i]),
);
}
},
),
);
What am I actually doing wrong? Any help would be great. 😊