flutter/examples/api/lib/cupertino
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
..
activity_indicator Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
bottom_tab_bar Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
button Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
checkbox Add example for CupertinoCheckbox (#151779) 2024-07-16 16:54:02 +00:00
context_menu Move FlutterLogo from material to widget (#155864) 2024-09-30 17:19:25 +00:00
date_picker Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
dialog Remove reference to MaterialApp and showCupertinoModalPopup from CupertinoAlertDialog (#150725) 2024-06-25 22:45:05 +00:00
form_row Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
list_section Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
list_tile [Docs] CupertinoListTile API Example (#154548) 2024-10-02 15:24:05 +00:00
nav_bar Add bottom to CupertinoNavigationBar to allow for a double-row nav bar (#155959) 2024-10-16 19:36:55 +00:00
page_scaffold Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
picker Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
radio Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
refresh Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
route Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
scrollbar Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
search_field Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
segmented_control Add ability to disable CupertinoSegmentedControl (#152813) 2024-10-24 12:05:35 +00:00
slider Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
switch Style: Rename CupertinoSwitch activeColor and trackColor to activeTrackColor and InactiveTrackColor (#151367) 2024-08-07 17:42:57 +00:00
tab_scaffold Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
text_field Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
text_form_field_row Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00