Flutter ले touch gestures (taps, swipes, drags, pinches) लाई gesture-detecting widgets जस्तै GestureDetector र InkWell, र built-in widget interactions माध्यमबाट handle गर्छ। Gesture handling बुझ्नु interactive apps निर्माणको लागि आवश्यक छ।
GestureDetector — 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),
)
