this is my code… it says errorerror
SingleChildScrollView(
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
weightIndicator(
0,
'0,2 kg',
),
weightIndicator(
0,
'0,4 kg',
),
weightIndicator(
0,
'0,6 kg',
),
weightIndicator(
0,
'0,8 kg',
),
weightIndicator(
0,
'1,0 kg',
),
],
),
),
how to fix the error?
2
Answers
Instead of using this Row with SingleChildScrollView , you can either use Wrap or use the ListView with the axisDirection as Axis.horizontal
Use this property inside "SingleChildScrollView",