'how to make cupertinoPicker not touchable, so scrolling only through FixedExtentScrollController
I would like to create a slot machine effect with cupertinoPicker, currently the onlye issue is the CupertinoPicker area is still interactive with gesture, my goal is disable gesture, so only controller can set the index of CupertinoPicker like followings:
firstScrollController.animateToItem(
firstNewIndex,
duration: Duration(milliseconds: randomDuration1 * 1000),
curve: Curves.easeOutQuint,
);
Plz let me know any clue, thanks!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
