flutter/examples/api/lib/cupertino/segmented_control
Huy fa5254331f
Add ability to disable CupertinoSegmentedControl (#152813)
### Summary

Add the ability to configure enabled or disabled segments in CupertinoSegmentedControl. The idea is to pass a `segmentStates` map, where the user can set the state according to segment key. User can also set background and text colors when the segment is disabled.

### Demo

https://github.com/user-attachments/assets/4a02da02-a0fb-4ded-a271-033a8dc79ac3

### Related issue
Fixes https://github.com/flutter/flutter/issues/52105
2024-10-24 12:05:35 +00:00
..
cupertino_segmented_control.0.dart Add ability to disable CupertinoSegmentedControl (#152813) 2024-10-24 12:05:35 +00:00
cupertino_sliding_segmented_control.0.dart Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00