can't call a class into a GestureDetector

Viewed 53

I have a GestureDetector that it's child is a row. on GestureDetector 'ontap' I want to call a class named MyApp that prints entry value but it's not working on GestureDetector's 'ontap'. calling class works well outside the GestureDetector. what can I do for it?enter image description here

1 Answers

Try to put your code into void function and the call it from there on tap. it may solve your problem. If you're trying directly to call class from there it will definitely show error or null.

Related