@@ -45,11 +45,13 @@ class TapDownDetails {
45
45
final Offset localPosition;
46
46
}
47
47
48
+ /// {@template flutter.gestures.tap.GestureTapDownCallback}
48
49
/// Signature for when a pointer that might cause a tap has contacted the
49
50
/// screen.
50
51
///
51
52
/// The position at which the pointer contacted the screen is available in the
52
53
/// `details` .
54
+ /// {@endtemplate}
53
55
///
54
56
/// See also:
55
57
///
@@ -82,11 +84,13 @@ class TapUpDetails {
82
84
final PointerDeviceKind kind;
83
85
}
84
86
87
+ /// {@template flutter.gestures.tap.GestureTapUpCallback}
85
88
/// Signature for when a pointer that will trigger a tap has stopped contacting
86
89
/// the screen.
87
90
///
88
91
/// The position at which the pointer stopped contacting the screen is available
89
92
/// in the `details` .
93
+ /// {@endtemplate}
90
94
///
91
95
/// See also:
92
96
///
@@ -360,8 +364,10 @@ class TapGestureRecognizer extends BaseTapGestureRecognizer {
360
364
/// {@macro flutter.gestures.GestureRecognizer.supportedDevices}
361
365
TapGestureRecognizer ({ super .debugOwner, super .supportedDevices });
362
366
367
+ /// {@template flutter.gestures.tap.TapGestureRecognizer.onTapDown}
363
368
/// A pointer has contacted the screen at a particular location with a primary
364
369
/// button, which might be the start of a tap.
370
+ /// {@endtemplate}
365
371
///
366
372
/// This triggers after the down event, once a short timeout ([deadline] ) has
367
373
/// elapsed, or once the gestures has won the arena, whichever comes first.
@@ -378,8 +384,10 @@ class TapGestureRecognizer extends BaseTapGestureRecognizer {
378
384
/// * [GestureDetector.onTapDown] , which exposes this callback.
379
385
GestureTapDownCallback ? onTapDown;
380
386
387
+ /// {@template flutter.gestures.tap.TapGestureRecognizer.onTapUp}
381
388
/// A pointer has stopped contacting the screen at a particular location,
382
389
/// which is recognized as a tap of a primary button.
390
+ /// {@endtemplate}
383
391
///
384
392
/// This triggers on the up event, if the recognizer wins the arena with it
385
393
/// or has previously won, immediately followed by [onTap] .
@@ -411,8 +419,10 @@ class TapGestureRecognizer extends BaseTapGestureRecognizer {
411
419
/// * [GestureDetector.onTap] , which exposes this callback.
412
420
GestureTapCallback ? onTap;
413
421
422
+ /// {@template flutter.gestures.tap.TapGestureRecognizer.onTapCancel}
414
423
/// A pointer that previously triggered [onTapDown] will not end up causing
415
424
/// a tap.
425
+ /// {@endtemplate}
416
426
///
417
427
/// This triggers once the gesture loses the arena if [onTapDown] has
418
428
/// previously been triggered.
@@ -428,8 +438,10 @@ class TapGestureRecognizer extends BaseTapGestureRecognizer {
428
438
/// * [GestureDetector.onTapCancel] , which exposes this callback.
429
439
GestureTapCancelCallback ? onTapCancel;
430
440
441
+ /// {@template flutter.gestures.tap.TapGestureRecognizer.onSecondaryTap}
431
442
/// A pointer has stopped contacting the screen, which is recognized as a tap
432
443
/// of a secondary button.
444
+ /// {@endtemplate}
433
445
///
434
446
/// This triggers on the up event, if the recognizer wins the arena with it or
435
447
/// has previously won, immediately following [onSecondaryTapUp] .
@@ -444,8 +456,10 @@ class TapGestureRecognizer extends BaseTapGestureRecognizer {
444
456
/// * [GestureDetector.onSecondaryTap] , which exposes this callback.
445
457
GestureTapCallback ? onSecondaryTap;
446
458
459
+ /// {@template flutter.gestures.tap.TapGestureRecognizer.onSecondaryTapDown}
447
460
/// A pointer has contacted the screen at a particular location with a
448
461
/// secondary button, which might be the start of a secondary tap.
462
+ /// {@endtemplate}
449
463
///
450
464
/// This triggers after the down event, once a short timeout ([deadline] ) has
451
465
/// elapsed, or once the gestures has won the arena, whichever comes first.
@@ -462,8 +476,10 @@ class TapGestureRecognizer extends BaseTapGestureRecognizer {
462
476
/// * [GestureDetector.onSecondaryTapDown] , which exposes this callback.
463
477
GestureTapDownCallback ? onSecondaryTapDown;
464
478
479
+ /// {@template flutter.gestures.tap.TapGestureRecognizer.onSecondaryTapUp}
465
480
/// A pointer has stopped contacting the screen at a particular location,
466
481
/// which is recognized as a tap of a secondary button.
482
+ /// {@endtemplate}
467
483
///
468
484
/// This triggers on the up event if the recognizer wins the arena with it
469
485
/// or has previously won.
@@ -482,8 +498,10 @@ class TapGestureRecognizer extends BaseTapGestureRecognizer {
482
498
/// * [GestureDetector.onSecondaryTapUp] , which exposes this callback.
483
499
GestureTapUpCallback ? onSecondaryTapUp;
484
500
501
+ /// {@template flutter.gestures.tap.TapGestureRecognizer.onSecondaryTapCancel}
485
502
/// A pointer that previously triggered [onSecondaryTapDown] will not end up
486
503
/// causing a tap.
504
+ /// {@endtemplate}
487
505
///
488
506
/// This triggers once the gesture loses the arena if [onSecondaryTapDown]
489
507
/// has previously been triggered.
0 commit comments