Answers for "Iterating through a list to render multiple widgets in Flutter"

0

Iterating through a list to render multiple widgets in Flutter

var list = ["one", "two", "three", "four"]; 

child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
             for(var item in list ) Text(item)
          ],
        ),
Posted by: Guest on July-28-2021

Code answers related to "Iterating through a list to render multiple widgets in Flutter"

Browse Popular Code Answers by Language