📜  遍历列表以在 Flutter 中呈现多个小部件 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:40.439000             🧑  作者: Mango

代码示例1
var list = ["one", "two", "three", "four"]; 

child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
             for(var item in list ) Text(item)
          ],
        ),