diff --git a/packages/flutter/lib/src/gestures/tap_and_drag.dart b/packages/flutter/lib/src/gestures/tap_and_drag.dart index f1e06fe185..2672acf36e 100644 --- a/packages/flutter/lib/src/gestures/tap_and_drag.dart +++ b/packages/flutter/lib/src/gestures/tap_and_drag.dart @@ -486,19 +486,10 @@ mixin _TapStatusTrackerMixin on OneSequenceGestureRecognizer { Timer? _consecutiveTapTimer; Offset? _lastTapOffset; - /// {@template flutter.gestures.selectionrecognizers.BaseTapAndDragGestureRecognizer.onTapTrackStart} - /// Callback used to indicate that a tap tracking has started upon - /// a [PointerDownEvent]. - /// {@endtemplate} + /// {@macro flutter.gestures.selectionrecognizers.TextSelectionGestureDetector.onTapTrackStart} VoidCallback? onTapTrackStart; - /// {@template flutter.gestures.selectionrecognizers.BaseTapAndDragGestureRecognizer.onTapTrackReset} - /// Callback used to indicate that a tap tracking has been reset which - /// happens on the next [PointerDownEvent] after the timer between two taps - /// elapses, the recognizer loses the arena, the gesture is cancelled or - /// the recognizer is disposed of. - /// {@endtemplate} - + /// {@macro flutter.gestures.selectionrecognizers.TextSelectionGestureDetector.onTapTrackReset} VoidCallback? onTapTrackReset; // When tracking a tap, the [consecutiveTapCount] is incremented if the given tap diff --git a/packages/flutter/lib/src/rendering/platform_view.dart b/packages/flutter/lib/src/rendering/platform_view.dart index 0583f3ae2c..91df8eabbf 100644 --- a/packages/flutter/lib/src/rendering/platform_view.dart +++ b/packages/flutter/lib/src/rendering/platform_view.dart @@ -759,7 +759,7 @@ mixin _PlatformViewGestureMixin on RenderBox implements MouseTrackerAnnotation { _HandlePointerEvent? _handlePointerEvent; - /// {@macro flutter.rendering.RenderAndroidView.updateGestureRecognizers} + /// {@macro flutter.rendering.PlatformViewRenderBox.updateGestureRecognizers} /// /// Any active gesture arena the `PlatformView` participates in is rejected when the /// set of gesture recognizers is changed. diff --git a/packages/flutter/lib/src/widgets/text_selection.dart b/packages/flutter/lib/src/widgets/text_selection.dart index 9148d5f2bf..9718a0cb42 100644 --- a/packages/flutter/lib/src/widgets/text_selection.dart +++ b/packages/flutter/lib/src/widgets/text_selection.dart @@ -3153,10 +3153,18 @@ class TextSelectionGestureDetector extends StatefulWidget { required this.child, }); - /// {@macro flutter.gestures.selectionrecognizers.BaseTapAndDragGestureRecognizer.onTapTrackStart} + /// {@template flutter.gestures.selectionrecognizers.TextSelectionGestureDetector.onTapTrackStart} + /// Callback used to indicate that a tap tracking has started upon + /// a [PointerDownEvent]. + /// {@endtemplate} final VoidCallback? onTapTrackStart; - /// {@macro flutter.gestures.selectionrecognizers.BaseTapAndDragGestureRecognizer.onTapTrackReset} + /// {@template flutter.gestures.selectionrecognizers.TextSelectionGestureDetector.onTapTrackReset} + /// Callback used to indicate that a tap tracking has been reset which + /// happens on the next [PointerDownEvent] after the timer between two taps + /// elapses, the recognizer loses the arena, the gesture is cancelled or + /// the recognizer is disposed of. + /// {@endtemplate} final VoidCallback? onTapTrackReset; /// Called for every tap down including every tap down that's part of a