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?
CodePudding user response:
Instead of using this Row with SingleChildScrollView , you can either use Wrap or use the ListView with the axisDirection as Axis.horizontal
CodePudding user response:
Use this property inside "SingleChildScrollView",
-scrollDirection: Axis.horizontal