How to update value of CupertinoSlidingSegmentedControl programmatically in Flutter
CupertinoSlidingSegmentedControl doesn't provide a way to update the value programmatically. The only workaround is to update a key, e.g., ValueKey, but doing so would disable the sliding transition, making it less ideal. CupertinoSlidingSegmentedControl( padding: EdgeInsets.zero, thumbColor: ColorAssets.green, groupValue: selected, onValueChanged:…