make any thing clickable example with container in flutter
body: Center(
child: InkWell(
onTap: () {
print('clicked');
},
onDoubleTap: () {
print('double tapped');
},
onLongPress: () {
print('long pressed');
},
child: Container(
height: 200,
width: 200,
color: Colors.red,
),
),
));
Comments
Post a Comment