GestureDetector class
A widget that detects gestures.
Attempts to recognize gestures that correspond to its non-null callbacks.
If this widget has a child, it defers to that child for its sizing behavior. If it does not have a child, it grows to fit the parent instead.
By default a GestureDetector with an invisible child ignores touches; this behavior can be controlled with behavior.
GestureDetector also listens for accessibility events and maps them to the callbacks. To ignore accessibility events, set excludeFromSemantics to true.
See flutter.dev/gestures/ for additional information.
Material design applications typically react to touches with ink splash effects. The InkWell class implements this effect and can be used in place of a GestureDetector for handling taps.
#flutter #mobile-apps #web-development #programming #developer