Skip to content

Commit aa934ac

Browse files
authored
Fix broken macro reference (#153881)
## Description This fixes a bogus macro reference. It's in the doc comment for a private function, so it's unlikely to ever see the docs website, but still, it shouldn't reference a non-existent template. ## Tests - Doc only change.
1 parent 30fc10d commit aa934ac

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

packages/flutter/lib/src/gestures/tap_and_drag.dart

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -486,19 +486,10 @@ mixin _TapStatusTrackerMixin on OneSequenceGestureRecognizer {
486486
Timer? _consecutiveTapTimer;
487487
Offset? _lastTapOffset;
488488

489-
/// {@template flutter.gestures.selectionrecognizers.BaseTapAndDragGestureRecognizer.onTapTrackStart}
490-
/// Callback used to indicate that a tap tracking has started upon
491-
/// a [PointerDownEvent].
492-
/// {@endtemplate}
489+
/// {@macro flutter.gestures.selectionrecognizers.TextSelectionGestureDetector.onTapTrackStart}
493490
VoidCallback? onTapTrackStart;
494491

495-
/// {@template flutter.gestures.selectionrecognizers.BaseTapAndDragGestureRecognizer.onTapTrackReset}
496-
/// Callback used to indicate that a tap tracking has been reset which
497-
/// happens on the next [PointerDownEvent] after the timer between two taps
498-
/// elapses, the recognizer loses the arena, the gesture is cancelled or
499-
/// the recognizer is disposed of.
500-
/// {@endtemplate}
501-
492+
/// {@macro flutter.gestures.selectionrecognizers.TextSelectionGestureDetector.onTapTrackReset}
502493
VoidCallback? onTapTrackReset;
503494

504495
// When tracking a tap, the [consecutiveTapCount] is incremented if the given tap

packages/flutter/lib/src/rendering/platform_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ mixin _PlatformViewGestureMixin on RenderBox implements MouseTrackerAnnotation {
759759

760760
_HandlePointerEvent? _handlePointerEvent;
761761

762-
/// {@macro flutter.rendering.RenderAndroidView.updateGestureRecognizers}
762+
/// {@macro flutter.rendering.PlatformViewRenderBox.updateGestureRecognizers}
763763
///
764764
/// Any active gesture arena the `PlatformView` participates in is rejected when the
765765
/// set of gesture recognizers is changed.

packages/flutter/lib/src/widgets/text_selection.dart

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3153,10 +3153,18 @@ class TextSelectionGestureDetector extends StatefulWidget {
31533153
required this.child,
31543154
});
31553155

3156-
/// {@macro flutter.gestures.selectionrecognizers.BaseTapAndDragGestureRecognizer.onTapTrackStart}
3156+
/// {@template flutter.gestures.selectionrecognizers.TextSelectionGestureDetector.onTapTrackStart}
3157+
/// Callback used to indicate that a tap tracking has started upon
3158+
/// a [PointerDownEvent].
3159+
/// {@endtemplate}
31573160
final VoidCallback? onTapTrackStart;
31583161

3159-
/// {@macro flutter.gestures.selectionrecognizers.BaseTapAndDragGestureRecognizer.onTapTrackReset}
3162+
/// {@template flutter.gestures.selectionrecognizers.TextSelectionGestureDetector.onTapTrackReset}
3163+
/// Callback used to indicate that a tap tracking has been reset which
3164+
/// happens on the next [PointerDownEvent] after the timer between two taps
3165+
/// elapses, the recognizer loses the arena, the gesture is cancelled or
3166+
/// the recognizer is disposed of.
3167+
/// {@endtemplate}
31603168
final VoidCallback? onTapTrackReset;
31613169

31623170
/// Called for every tap down including every tap down that's part of a

0 commit comments

Comments
 (0)