Below is the code so far.
Widget build(BuildContext context) {
return GestureDetector(
onPanDown: (details) {
print("father");
},
child: Container(
alignment: Alignment.center,
color: Colors.red,
width: 300,
height: 300,
child: GestureDetector(
onPanDown: (details) {
print("child");
},
child: Container(
alignment: Alignment.center,
color: Colors.blue,
width: 100,
height: 100,
child: Text("data"),
),
),
),
);
}