diff --git a/packages/cupertino_ui/lib/src/sliding_segmented_control.dart b/packages/cupertino_ui/lib/src/sliding_segmented_control.dart index 4fdb370b8b5..d751cf23304 100644 --- a/packages/cupertino_ui/lib/src/sliding_segmented_control.dart +++ b/packages/cupertino_ui/lib/src/sliding_segmented_control.dart @@ -101,7 +101,7 @@ const Duration _kHighlightAnimationDuration = Duration(milliseconds: 200); class _Segment extends StatefulWidget { const _Segment({ - required ValueKey key, + required ValueKey super.key, required this.child, required this.pressed, required this.highlighted, @@ -109,7 +109,7 @@ class _Segment extends StatefulWidget { required this.enabled, required this.segmentLocation, required this.isMomentary, - }) : super(key: key); + }); final Widget child; @@ -238,8 +238,7 @@ class _SegmentState extends State<_Segment> with TickerProviderStateMixin< // Fadeout the separator when either adjacent segment is highlighted. class _SegmentSeparator extends StatefulWidget { - const _SegmentSeparator({required ValueKey key, required this.highlighted}) - : super(key: key); + const _SegmentSeparator({required ValueKey super.key, required this.highlighted}); final bool highlighted;