What is GestureDetector in Flutter?
GestureDetector detects touch interactions (tap, double-tap, swipe, etc.)
Example:
GestureDetector detects touch interactions (tap, double-tap, swipe, etc.)
Example:
GestureDetector( onTap: () { print("Tapped!"); }, child: Container( color: Colors.blue, child: Text("Tap Me"), ), );
Comments
Post a Comment