I wanna make a number of widgets in the ListView by using iterator like for, like the example below,
for(int i = 1; i < 3; i++ ){
Text('hello world'),
}
but unfortunately it doesn't work, showing me this error message.
The element type 'Set<Text>' can't be assigned to the list type 'Widget'.
How can i fix this?
Thank you for concerning my question.
for(int i = 1; i < 3; i++ ) Text('hello world'),