I have two containers in a stack and both containers have GestureDetector.The OnTap for the first container is working fine but it\'s not working with another container. The
Because of stack..There are some widget on your GestureDetector.
stack
widget
GestureDetector
Solution:
Stack( children: [ ...//Other widgets, GestureDetector() ]