Is there a way to disable the InkWell click feature?
(I don't want to make it conditional with if and else in onTap, I want it not to be clickable at all).
Is there a way to disable the InkWell click feature?
(I don't want to make it conditional with if and else in onTap, I want it not to be clickable at all).
When you do not pass the onTap function it will be non-clickable,Try this:
InkWell(
child: Text('click'),
)