If I have a GestureDetector that have an internal GestureDetector how can I setup it so that both detectors receive the click event?
You can see the running code here: https://dartpad.dev/37807a51a48e52eda81c24cf67260c33
GestureDetector(
onTap: () => print("Log 1"),
child: GestureDetector(
onTap: () => print("Log 2"),
child: Text("CLICK ME")
)
);
Every time I click the text it prints
Log 2.I already tried setting
HitTestBehavior.traslucentand all of them but got no success.I want it to print
Log 1andLog 2