Tap outside of component to toggle close

Troubleshooting

I have this profilePopup component below with a component parameter isProfilePopup as a boolean that I assign an action to the displayName container to toggle isProfilePopup's value to conditionally show the component. But I'm not sure how to add a tap action to click anywhere on the page outside the component to close it off when it opens (as of now it can only be closed by re-clicking the displayName, rather than anywhere else on the page). I know we can use GestureDectector in Flutter to detect the mouse click but I don't find this widget in FlutterFlow. Anyone had similar use case? Or is there a better way to do this? Thanks a million!

What have you tried so far?

GestureDetector not found in FF

Did you check FlutterFlow's Documentation for this topic?
Yes
2
6 replies