click on container flutter code example
Example 1: clickable container flutter
GestureDetector(
onTap: () {
print("Tapped a Container");
},
child: Container(...),
)
Example 2: flutter onclick container
InkWell(
onTap: () {}, // Handle your callback
child: Ink(height: 100, width: 100, color: Colors.blue),
)