Flutter- GestureDetector not working with containers in stack

前端 未结 10 751
一生所求
一生所求 2020-12-28 12:14

I have two containers in a stack and both containers have GestureDetector.The OnTap for the first container is working fine but it\'s not working with another container. The

10条回答
  •  醉梦人生
    2020-12-28 12:46

    I see that you are calling the callback method instead of assigning it to onTap property of GestureDetector widget. Pass the name of the method don't call it there.

提交回复
热议问题