Click gesturedetector and a covered pop-up window will appear. How can the gesture be transmitted to the pop-up window without raising the gesture? - flutter

In the OnTap of gesturedetector, use showmodal bottomsheet to pop up a window. At the same position of the button, there is a weight of gesturedetector. How can the gesturedetector in this pop-up window get the click event when the previous gesturedetector is not lifted

Related

How to disable or ignore background screen's touch events after loading an overlay?

In flutter flame, after tapping on pause button on score overlay at the top, I pause the game engine, and display a little pause overlay window at the center of the screen, but score overlay which is visible in the background still is tappable. I want to disable all the touch events behind pause overlay window. I couldn't find a workaround using AbsorbPointer and IgnorePointer Widgets.
Disable underlying tap events behind active overlay?
or
Dismissing the overlay window by tapping outside of it?
There is some talk about this situation here.
What you could do is add a GestureDetector that covers the full screen in your overlay, something like this:
GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
...
},
child: <<Your current overlay>>,
);

Draggable but not dismissible bottom sheet in Flutter

How to achieve a behavior when you can drag a bottom sheet but can't dismiss it, e.g., in Uber

How to show emoji on button click that animates then disappears in flutter

So I'm developing this game called Tap Tap, and what is required is that when I click a button a like emoji should appear, animate to top then disappear, kinda like when like button is clicked in instagram, a heart appears.
How can I achieve something like this in flutter, I don't want anything fancy, just the emoji to show for like a second, animate then disappear.
you could try to animate the opacity and offset.
Wrap the emoji with an AnimatedOpacity widget and wrap that with a TransformWidget.

Screen Edge Gesture Recognizer issue

I have problem with UIScreenEdgePanGestureRecognizer. I add .left edge for this gesture for swiping hamburger menu, but I have UISlider control on this screen, which left edge binded to left edge of the screen.
When I swipe from left to right on my UISlider control, instead of changing its value screen shows me hamburger menu.
How to partially disable left edge recognizer in slider area, but stay enable in other parts of this screen?
I've implemented 'require to fail' in overlapping gesture recognizer situations where you don't want a recognizer to respond.
leftEdgeRecognizer.require(toFail: sliderAreaRecognizer)
This will cause the the left edge swipe to fail or " be disabled" where the slider recognizer is active.
Set a delegate to your UIScreenEdgePanGestureRecognizer,
implement shouldRecognizeSimultaneouslyWithOtherGestureRecognizer function
and return false.

Pressing on a button causes UIScrollView to scorll

I'm having an inconsistent problem where sometimes I press on a button inside the scrollview. The scrollview catches the event and scrolls instead of the button getting the touch event.
Any idea how to solve this bizarre behavior.
Thanks
Don't move your finger while it's pressed down on the button. If you move your finger at all, the scrollview will cancel the touches sent to the button and process them itself. It must do this so that you can scroll by touching anywhere on the scrollview, not just an empty space.