What is GestureDetector in Flutter?

 GestureDetector detects touch interactions (tap, double-tap, swipe, etc.)

Example:

GestureDetector( onTap: () { print("Tapped!"); }, child: Container( color: Colors.blue, child: Text("Tap Me"), ), );

Comments

Popular posts from this blog

1. What is Flutter?

What is FutureBuilder and StreamBuilder?