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

Popular posts from this blog

swapping the alternate values in given array's element ! 17/11/2022

c++ basic question

Learning stage | c++ programs