flutterflutter-layoutcontainersripple-effect

How do you remove RIPPLE EFFECT from a CLICKABLE TRANSPARENT CONTAINER?


I want to remove the ripple effect from a transparent clickable container but no matter what I do the effect just doesn't go away, please help!

Code:

InkWell(
 onTap: (){print('Tapped');},
   child: Container(
     height: 200, width: 200,),)

Solution

  • use GestureDetector instead:

    GestureDetector(
     onTap: () {print('Tapped');},
       child: Container(
         height: 200, width: 200,
       ),
     )