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
I see that you are calling the callback method instead of assigning it to onTap property of GestureDetector widget. Pass the name of the method don't call it there.