make a widget clickable flutter code example
Example 1: clickable container flutter
GestureDetector(
onTap: () {
print("Tapped a Container");
},
child: Container(...),
)
Example 2: flutter make a container clickable
Card(
child: new InkWell(
onTap: () {
print("tapped");
},
child: Container(
width: 100.0,
height: 100.0,
),
),
),