xxxxxxxxxx
Expanded(
child: ListView.builder(
shrinkWrap: true,
itemBuilder: (ctx,int){
return Card(
child: ListTile(
title: Text('Motivation $int'),
subtitle: Text('this is a description of the motivation')),
);
},
),
),
xxxxxxxxxx
ListView(
// This next line does the trick.
scrollDirection: Axis.horizontal,
children: .
xxxxxxxxxx
ListView.builder(
scrollDirection: Axis.horizontal,
itemCount: itemList.length,
itemBuilder: (context, index) {
return Container(
width: 100,
child: ListTile(
leading: Icon(Icons.circle),
title: Text(itemList[index]),
),
);
},
)