I'm building a list using ListWheelScrollView and I would like to change margin value of container below the centre one. I'm also using AnimatedContainer.
margin: const EdgeInsets.only( left: x == selected ? 13 : 10),
This code gives me error : Error: Not a constant expression. left: x == selected ? 13 : 10), Is there a way to avoid it?