Flutter touch gestures (taps, swipes, drags, pinches) ஐ gesture-detecting widgets ஆன GestureDetector மற்றும் InkWell, மேலும் built-in widget interactions மூலம் கையாள்கிறது. Gesture handling ஐ புரிந்துகொள்வது interactive apps ஐ உருவாக்குவதற்கு அத்தியாவசியமாகும்.
GestureDetector — gestures ஐ detect செய்க
// 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),
)
