Skip to content
Open
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
7 changes: 3 additions & 4 deletions packages/cupertino_ui/lib/src/sliding_segmented_control.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ const Duration _kHighlightAnimationDuration = Duration(milliseconds: 200);

class _Segment<T> extends StatefulWidget {
const _Segment({
required ValueKey<T> key,
required ValueKey<T> super.key,
required this.child,
required this.pressed,
required this.highlighted,
required this.isDragging,
required this.enabled,
required this.segmentLocation,
required this.isMomentary,
}) : super(key: key);
});

final Widget child;

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

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

final bool highlighted;

Expand Down
Loading