Answers for "flutter inline loop statement"

2

flutter for loop

final children = <Widget>[];
for (var i = 0; i < 10; i++) {
  children.add(new ListTile());
}
return new ListView(
  children: children,
);
Posted by: Guest on December-28-2020
0

flutter iterate over list widget

Widget getTextWidgets(List<String> strings)
  {
    return new Row(children: strings.map((item) => new Text(item)).toList());
  }
Posted by: Guest on August-31-2020

Code answers related to "Dart"

Browse Popular Code Answers by Language