I have a list in flutter that contain 5 item
{"i1","i2","i3","i4","i5")
and I would like to display it in rows of 2 items
How can I do this in Flutter
I have it displaying 1 line per item
pw.Container(
padding: const EdgeInsets.symmetric(horizontal: 16.0),
child: pw.Column(
children: <Widget>[
for (var skill in skillsList) ...[
pw.SizedBox(height: 5.0),
pw.Row(
children: <Widget>[
pw.Container(
width: 2.0,
height: 2.0,
decoration: BoxDecoration(
shape: pw.BoxShape.circle,
color: PdfColor.fromInt(Colors.black.value),
),
),
pw.SizedBox(width: 4.0),
makeTextField("$skill", size: 11.0),
],
)
]
],
),
),
This is what I wanted
*i1 *i2
*i2 *i4
*i5