Home > Back-end >  Disable inkwell click feature in flutter
Disable inkwell click feature in flutter

Time:09-21

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).

CodePudding user response:

When you do not pass the onTap function it will be non-clickable,Try this:

InkWell(
   child: Text('click'),
)

CodePudding user response:

Simply don't give it an onTap. Leave it out

  • Related