make a widget clickable in flutter code example
Example: clickable container flutter
GestureDetector(
onTap: () {
print("Tapped a Container");
},
child: Container(...),
)
GestureDetector(
onTap: () {
print("Tapped a Container");
},
child: Container(...),
)