Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/cupertino_ui/lib/src/segmented_control.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const Duration _kFadeDuration = Duration(milliseconds: 165);
/// * [CupertinoSegmentedControl], a segmented control widget in the style used
/// up until iOS 13.
/// * <https://developer.apple.com/design/human-interface-guidelines/ios/controls/segmented-controls/>
@Deprecated('Use CupertinoSlidingSegmentedControl instead.')
class CupertinoSegmentedControl<T extends Object> extends StatefulWidget {
/// Creates an iOS-style segmented control bar.
///
Expand All @@ -110,6 +111,7 @@ class CupertinoSegmentedControl<T extends Object> 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,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
changelog: |
- Deprecates CupertinoSegmentedControl in favor of CupertinoSlidingSegmentedControl.
version: patch
Loading