Quantcast
Channel: How can I use for loop in flutter? - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Lalit M for How can I use for loop in flutter?

To your question, you can do like thischildren: [ for (var i = 0; i < List.length; i++) NewsBlock() ],Other way to do is to use map in the list datachildren: newsData.map((item)=>NewsBlock( size:...

View Article



Answer by Alex Radzishevsky for How can I use for loop in flutter?

You can use for loop like this: final maxSize = ???; final imgStartIndex = 1; final titleStartIndex = 11; final urlStartIndex = 21; return Scaffold( body: SingleChildScrollView( child: Column(...

View Article

How can I use for loop in flutter?

return Scaffold( body: SingleChildScrollView( child: Column( children: <Widget>[ Stack( children: <Widget>[ Column( children: <Widget>[ NewsBlock( size: size, dataList: dataList,...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images