Skip to content

Commit 0d933e5

Browse files
authored
[cupertino_ui] Use super parameters in more places (flutter#12459)
This is work towards dart-lang/sdk#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. ## Pre-Review Checklist Test exempt, as this code is covered by existing static and runtime checks.
1 parent 64bd660 commit 0d933e5

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎packages/cupertino_ui/lib/src/sliding_segmented_control.dart‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,15 @@ const Duration _kHighlightAnimationDuration = Duration(milliseconds: 200);
101101

102102
class _Segment<T> extends StatefulWidget {
103103
const _Segment({
104-
required ValueKey<T> key,
104+
required ValueKey<T> super.key,
105105
required this.child,
106106
required this.pressed,
107107
required this.highlighted,
108108
required this.isDragging,
109109
required this.enabled,
110110
required this.segmentLocation,
111111
required this.isMomentary,
112-
}) : super(key: key);
112+
});
113113

114114
final Widget child;
115115

@@ -238,8 +238,7 @@ class _SegmentState<T> extends State<_Segment<T>> with TickerProviderStateMixin<
238238

239239
// Fadeout the separator when either adjacent segment is highlighted.
240240
class _SegmentSeparator extends StatefulWidget {
241-
const _SegmentSeparator({required ValueKey<int> key, required this.highlighted})
242-
: super(key: key);
241+
const _SegmentSeparator({required ValueKey<int> super.key, required this.highlighted});
243242

244243
final bool highlighted;
245244

0 commit comments

Comments
 (0)