From 8dfcfb3f7d6db598b45b804016892361011871f3 Mon Sep 17 00:00:00 2001 From: Sam Rawlins Date: Thu, 13 Aug 2026 09:00:27 -0700 Subject: [PATCH] [cupertino_ui] Use super parameters in more places This is work towards https://github.com/dart-lang/sdk/issues/59226 The lint rule use_super_parameters has a bug such that it didn't previously report these cases. But they will be reported soon. --- .../cupertino_ui/lib/src/sliding_segmented_control.dart | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/cupertino_ui/lib/src/sliding_segmented_control.dart b/packages/cupertino_ui/lib/src/sliding_segmented_control.dart index 4fdb370b8b5c..d751cf23304f 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;