Gestures Detect user interaction within your app

This lesson is available for PRO members or as a single course purchase. Sign-in and choose a plan below.


*Enrollment provides full access to this course (and updates) for life.

Or Signup for Unlimited PRO Access

Example Code

file_type_dartlang main.dart
//...
         child: GestureDetector(
           onTapDown: (details) => print(details.globalPosition.dx),
           child: Container(
             width: 100,
             height: 100,
             color: Colors.red
           ),
         ),
//...

Q&A Chat