I want to use the ListBody
widget horizontally inside the Column
widget. How can I do this correctly.
Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: [
heightS(24),
Text('John Doe'),
heightS(16),
Text('Comment'),
heightS(12),
TextField(
controller: TextEditingController(),
maxLines: null,
),
heightS(38),
ListBody(
mainAxis: Axis.horizontal,
children: [
Text(
'Total marks',
),
widthS(228),
Text('10'),
],
)
],
);
SizedBox heightS(num h) => SizedBox(height: h.h);
SizedBox widthS(num w) => SizedBox(width: w.w);