How can I make a loop in a Row widget?
Here is my list:
List childList = [
{
'name': 'Sofie Laurson',
'old': '39 months',
'image': 'images/female.jpeg'
},
{'name': 'John Snow', 'old': '2 years', 'image': 'images/male.jpeg'}
];
and here is the Row:
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
CircleAvatar(
radius: 30.0,
backgroundImage: AssetImage("images/female.jpeg"),
),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text(
'Sophie Casey',
style: TextStyle(
fontSize: 20.0,
),
),
Text(
'39 month',
style: TextStyle(
fontSize: 16.0, color: Colors.black45,
),
),
],
),
Text(
'Edit',
style: TextStyle(color: redColor, fontSize: 18.0),
),
],
),
I need to fill the name, image path and age. Thanks!