Been developing a flutter app and dynamicly building some containers from some Firebase data. I wanted to know if there is a way to get a onTap method for containers (or any wi
wrapping the container inside an Inkwell() Widget could solve the problem or even GestureDetector() as
InkWell( child: Container(...), onTap: () { print("tapped on container"); }, );
Using the Gesture Detector
GestureDetector( onTap: () { print("Container was tapped"); }, child: Container(...), )