Add an example for TapAndPanGestureRecognizer (#131873)
This adds an example for `TapAndPanGestureRecognizer` that demonstrates how to scale a widget using a double tap + vertical drag gesture. https://github.com/flutter/flutter/assets/948037/4c6c5467-2157-4b6a-bc52-264a3b6303de
This commit is contained in:
@@ -684,6 +684,13 @@ mixin _TapStatusTrackerMixin on OneSequenceGestureRecognizer {
|
||||
/// pointer does travel enough distance then the recognizer that entered the arena
|
||||
/// first will win. The gesture detected in this case is a drag.
|
||||
///
|
||||
/// {@tool dartpad}
|
||||
/// This example shows how to use the [TapAndPanGestureRecognizer] along with a
|
||||
/// [RawGestureDetector] to scale a Widget.
|
||||
///
|
||||
/// ** See code in examples/api/lib/gestures/tap_and_drag/tap_and_drag.0.dart **
|
||||
/// {@end-tool}
|
||||
///
|
||||
/// {@tool snippet}
|
||||
///
|
||||
/// This example shows how to hook up [TapAndPanGestureRecognizer]s' to nested
|
||||
|
||||
Reference in New Issue
Block a user