diff --git a/packages/cupertino_ui/lib/src/segmented_control.dart b/packages/cupertino_ui/lib/src/segmented_control.dart index 1b2ff06222f0..57bdd23090cd 100644 --- a/packages/cupertino_ui/lib/src/segmented_control.dart +++ b/packages/cupertino_ui/lib/src/segmented_control.dart @@ -94,6 +94,7 @@ const Duration _kFadeDuration = Duration(milliseconds: 165); /// * [CupertinoSegmentedControl], a segmented control widget in the style used /// up until iOS 13. /// * +@Deprecated('Use CupertinoSlidingSegmentedControl instead.') class CupertinoSegmentedControl extends StatefulWidget { /// Creates an iOS-style segmented control bar. /// @@ -110,6 +111,7 @@ class CupertinoSegmentedControl extends StatefulWidget { /// If no [groupValue] is provided, or the [groupValue] is null, no widget will /// appear as selected. The [groupValue] must be either null or one of the keys /// in the [children] map. + @Deprecated('Use CupertinoSlidingSegmentedControl instead.') CupertinoSegmentedControl({ super.key, required this.children, diff --git a/packages/cupertino_ui/pending_changelogs/change_2026_09_05_deprecate_cupertino_segmented_control.yaml b/packages/cupertino_ui/pending_changelogs/change_2026_09_05_deprecate_cupertino_segmented_control.yaml new file mode 100644 index 000000000000..ad73b16273fe --- /dev/null +++ b/packages/cupertino_ui/pending_changelogs/change_2026_09_05_deprecate_cupertino_segmented_control.yaml @@ -0,0 +1,3 @@ +changelog: | + - Deprecates CupertinoSegmentedControl in favor of CupertinoSlidingSegmentedControl. +version: patch