Did you know?
If you need to select between a small list of values but have limited vertical space, you can use a ListWheelScrollView
. 🎯
Pro Tip: use FixedExtentScrollPhysics
to snap to the nearest item when the user stops scrolling. 👍
How to use it
- call the regular
ListWheelScrollView
constructor and pass a list of children. - call
ListWheelScrollView.useDelegate
and pass aListWheelChildDelegate
.
For all the details, check the official docs:
Happy coding!