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:
- call the regular
ListWheelScrollViewconstructor and pass a list of children. - call
ListWheelScrollView.useDelegateand pass aListWheelChildDelegate.
For all the details, check the official docs:
| Previous | Next |
|---|---|
| Color API Deprecations in Flutter 3.27 | Using Stack and FractionallySizedBox |
