Flutter touch gestures (taps, swipes, drags, pinches) को GestureDetector और InkWell जैसे gesture-detecting widgets, साथ ही built-in widget interactions के माध्यम से handle करता है। gesture handling को समझना interactive ऐप बनाने के लिए आवश्यक है।
GestureDetector — detect gestures
// GestureDetector wraps a widget and detects gestures on it
GestureDetector(
onTap: () => print('tapped'),
onDoubleTap: () => print('double tapped'),
onLongPress: () => print('long pressed'),
onPanUpdate: (details) => print('dragging: ${details.delta}'), // drag
onScaleUpdate: (details) => print('pinch: ${details.scale}'), // pinch/zoom
child: Container(width: 100, height: 100, color: Colors.blue),
)
