PROBLEM: How we can disable color for inkwell so that if we click on it nothing shows up but click should work as it is?
2
SOLUTION: Just pass transparent color in 2 properties of Inkwell
Now if you click there will be no color but onTap will work.
InkWell( highlightColor: Colors.transparent, splashColor: Colors.transparent, onTap: () { print("Hello D"); }, child: Container( ),
Or even simpler you can use a GestureDetector class
... GestureDetector( onTap: () => doSomething(), child: Text("click here"), ) ...
Click here to cancel reply.
2
Answers
SOLUTION:
Just pass transparent color in 2 properties of Inkwell
Now if you click there will be no color but onTap will work.
Or even simpler you can use a GestureDetector class